OFFSET
0,2
EXAMPLE
For n = 2, A003010(2) = 11000010 (in binary), so a(2) = 3.
MAPLE
MATHEMATICA
First@ DigitCount[#, 2] & /@ NestList[#^2 - 2 &, 4, 28] (* Michael De Vlieger, Apr 04 2016 *)
PROG
(PARI) lista(nn) = {a = 4; print1(hammingweight(a), ", "); for (n=1, nn, a = a^2-2; print1(hammingweight(a), ", "); ); } \\ Michel Marcus, Apr 04 2016
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Olivier de Mouzon, Jul 17 2013
EXTENSIONS
Terms from a(19) on from Michel Marcus, Apr 04 2016
STATUS
approved