OFFSET
0,12
COMMENTS
Sequence A115384 is a(n) = Sum_{i=1..n} (floor(S2(n)*1/1) mod 2) = Sum_{i=1..n} (S2(n) mod 2).
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
MAPLE
A000120 := proc(n) local i ; add(i, i=convert(n, base, 2)) : end: A135585 := proc(n) add(floor(A000120(i)/3) mod 2, i=1..n) ; end: seq(A135585(n), n=0..80) ; # R. J. Mathar, Apr 22 2008
MATHEMATICA
f[n_] := n - Sum[Floor[n/2^k], {k, 1, Infinity}]; Table[Sum[Mod[Floor[f[i]/3], 2], {i, 1, n}], {n, 0, 25}] (* G. C. Greubel, Oct 20 2016 *)
PROG
(PARI) a(n) = sum(i=1, n, hammingweight(i)\3 % 2); \\ Michel Marcus, Sep 19 2015
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Ctibor O. Zizka, Feb 25 2008
EXTENSIONS
Definition corrected by R. J. Mathar, Apr 22 2008
STATUS
approved