OFFSET
1,2
COMMENTS
a(n) is of order n^log4(3).
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
P. J. Grabner, A note on the parity of the sum-of-digits function, Séminaire Lotharingien de Combinatoire, B30e (1993), 8 pp.
MATHEMATICA
A036555 := Total /@ IntegerDigits[3 Range[1, 130], 2]; Table[Sum[ (-1)^A036555[[k]], {k, 1, n}], {n, 1, 50}] (* G. C. Greubel, Jan 01 2017 *)
PROG
(PARI) a(n) = sum(k=1, n, (-1)^hammingweight(3*k)); \\ Michel Marcus, Dec 03 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Ralf Stephan, Sep 27 2004
EXTENSIONS
Typo in name corrected by Michel Marcus, Dec 03 2016
STATUS
approved