A257691 Numbers that are not A000120-abundant.
1, 2, 3, 5, 7, 11, 13, 17, 19, 23, 25, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 95, 97, 101, 103, 107, 109, 111, 113, 119, 121, 123, 125, 127, 131, 137, 139, 149, 151, 157, 163, 167, 169, 173, 179, 181, 187, 191, 193, 197, 199, 211, 219, 221, 223, 227, 229, 233, 239, 241, 247, 251, 257
Offset: 1
Keywords
Links
- Antti Karttunen, Table of n, a(n) for n = 1..10000
Crossrefs
Programs
-
Mathematica
A192895[n_] := DivisorSum[n, Total[IntegerDigits[#, 2]]*(-1)^Boole[# == n]& ]; Reap[For[n=1, n<300, n++, If[A192895[n] <= 0, Sow[n]]]][[2, 1]] (* Jean-François Alcover, Dec 05 2015 *)
-
PARI
A192895(n) = sumdiv(n, d, hammingweight(d)*(-1)^(d==n)); isA257691(n) = (A192895(n) <= 0); n=i=0; while(i < 10000, n++; if(isA257691(n), i++; write("b257691.txt", i, " ", n))); \\ Charles R Greathouse IV, Feb 07 2013
Comments