A235001 Odious squares.
1, 4, 16, 25, 49, 64, 81, 100, 121, 196, 256, 289, 324, 361, 400, 484, 529, 625, 784, 841, 961, 1024, 1089, 1156, 1225, 1296, 1444, 1521, 1600, 1681, 1849, 1936, 2116, 2401, 2500, 2601, 3025, 3136, 3364, 3481, 3844, 4096, 4225, 4356, 4489, 4624, 4900, 5041, 5184, 5625
Offset: 1
Keywords
Examples
16 is a square 4^2 and 16 in base 2 is a 10000, having an odd number of 1's, thus 16 is in this sequence.
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1000
Crossrefs
Cf. A231431 (evil squares).
Programs
-
Mathematica
Select[Range[200]^2,OddQ[DigitCount[#,2,1]]&] (* Harvey P. Dale, Jan 14 2014 *)
Comments