OFFSET
1,1
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
36 = 100100_2 with 4 0's and 2 1's, hence 36 is in the sequence.
MATHEMATICA
Select[Range[3000], DigitCount[#, 2, 1]^2==DigitCount[#, 2, 0]&] (* Harvey P. Dale, Aug 18 2017 *)
PROG
(PARI) is(n)=hammingweight(n)^2==hammingweight(bitneg(n, #binary(n))) \\ Charles R Greathouse IV, Mar 29 2013
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Benoit Cloitre, Dec 21 2002
STATUS
approved