|
|
A135133
|
|
a(n) = floor(S2(n)/3) mod 2, where S2(n) denotes the binary weight of n.
|
|
2
|
|
|
0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,1
|
|
COMMENTS
|
A generalized Thue-Morse sequence.
|
|
LINKS
|
|
|
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
|
|
|
STATUS
|
approved
|
|
|
|