OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
Conjecture: a(n) ~ 4n^2. - Charles R Greathouse IV, Nov 20 2013
EXAMPLE
36 is in the sequence because 36 = 6^2 and 36 in base 2 is 100100, having an even number of 1's.
MATHEMATICA
Select[Range[0, 150]^2, EvenQ[DigitCount[#, 2, 1]]&] (* Harvey P. Dale, Nov 23 2015 *)
PROG
(PARI) is(n)=hammingweight(n)%2==0 && issquare(n) \\ Charles R Greathouse IV, Nov 20 2013
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Juri-Stepan Gerasimov, Nov 20 2013
EXTENSIONS
Corrected and extended by Harvey P. Dale, Nov 23 2015
STATUS
approved