OFFSET
1,1
COMMENTS
Numbers n with odd sum of binary weight of n and binary weight of n^2.
Primes are in this sequence: 5, 13, 17, 23, 29, 37, 43, 47, 61, 71, 73,....
Evil numbers with odious squares: 5, 9, 10, 17, 18, 20, 23, 29, 33, 34,...
Odious numbers with evil squares: 13, 21, 26, 37, 42, 47, 52, 61, 69,...
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) = 10 because 2 (binary weight of 10) + 3 (binary weight of 100) = 5 (odd).
a(4) = 13 because 3 (binary weight of 13) + 4 (binary weight of 169) = 7 (odd).
MATHEMATICA
Select[Range[100], Mod[DigitCount[#, 2, 1], 2] != Mod[DigitCount[#^2, 2, 1], 2] &] (* Amiram Eldar, Aug 31 2020 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Gerasimov Sergey, Jan 13 2014
EXTENSIONS
Wrong term removed by Amiram Eldar, Aug 31 2020
STATUS
approved