OFFSET
1,1
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
39 = 100111_2 with 4 1's and 2 0's, hence 39 is in the sequence.
PROG
(PARI) is(n)=hammingweight(bitneg(n, #binary(n)))^2==hammingweight(n) \\ Charles R Greathouse IV, Mar 29 2013
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Benoit Cloitre, Dec 21 2002
STATUS
approved