OFFSET
0,1
COMMENTS
A generalized Thue-Morse sequence.
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 0..10000
Ricardo Astudillo, On a class of Thue-Morse type sequences, Journal of Integer Sequences, Vol. 6 (2003), Article 03.4.2.
MAPLE
S2 := proc(n) return add(d, d=convert(n, base, 2)): end: A135133 := proc(n) return floor(S2(n)/3) mod 2: end: seq(A135133(n), n=0..104); # Nathaniel Johnston, May 06 2011
MATHEMATICA
Table[Mod[Floor[(Plus @@ IntegerDigits[n, 2])/3], 2], {n, 0, 50}] (* G. C. Greubel, Sep 28 2016 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Ctibor O. Zizka, Feb 12 2008
STATUS
approved