OFFSET
1,1
LINKS
Michel Marcus, Table of n, a(n) for n = 1..10000
EXAMPLE
127 = 1111111_2 has seven 1's, so is a term (this distinguishes the sequence from A235336).
MATHEMATICA
Select[Range@ 140, ! IntegerQ@ Log2@ First@ DigitCount[#, 2] &] (* Michael De Vlieger, Apr 16 2016 *)
PROG
(PARI) lista(nn) = {for (n=1, nn, my(nbd = hammingweight(n)); if (!((nbd==1) || (nbd==2) || (ispower(nbd, , &k) && (k==2))), print1(n, ", ")); ); } \\ Michel Marcus, Apr 16 2016
(Python)
A271499_list = [n for n in range(1, 10**6) if bin(bin(n).count('1')).count('1') != 1] # Chai Wah Wu, Apr 16 2016
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Apr 16 2016
STATUS
approved