login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A101650
A Thue-Morse-Stern sequence.
3
0, 0, 1, 0, 2, 1, 2, 0, 0, 2, 1, 1, 1, 2, 0, 0, 1, 0, 0, 2, 1, 1, 0, 1, 0, 1, 1, 2, 0, 0, 1, 0, 2, 1, 2, 0, 1, 0, 0, 2, 1, 1, 0, 1, 2, 0, 2, 1, 2, 0, 2, 1, 0, 1, 1, 2, 0, 0, 1, 0, 2, 1, 2, 0, 0, 2, 1, 1, 1, 2, 0, 0, 2, 1, 2, 0, 1, 0, 0, 2, 1, 1, 0, 1, 2, 0, 2, 1, 1, 2, 0, 0, 0, 2, 1, 1, 1, 2, 0, 0, 0
OFFSET
0,5
COMMENTS
a(2n+1) = a(n).
FORMULA
a(n)=mod(-1+sum{k=0..floor(n/2), mod(binomial(n-k, k), 2)}, 3); a(n)=mod(-1+A002487(n+1), 3).
CROSSREFS
Cf. A010060.
Sequence in context: A348920 A348921 A050601 * A287411 A053796 A029391
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Dec 10 2004
STATUS
approved