login
A101661
Fixed point of morphism 0 -> 01, 1 -> 02, 2 -> 20.
0
0, 1, 0, 2, 0, 1, 2, 0, 0, 1, 0, 2, 2, 0, 0, 1, 0, 1, 0, 2, 0, 1, 2, 0, 2, 0, 0, 1, 0, 1, 0, 2, 0, 1, 0, 2, 0, 1, 2, 0, 0, 1, 0, 2, 2, 0, 0, 1, 2, 0, 0, 1, 0, 1, 0, 2, 0, 1, 0, 2, 0, 1, 2, 0, 0, 1, 0, 2, 0, 1, 2, 0, 0, 1, 0, 2, 2, 0, 0, 1, 0, 1, 0, 2, 0, 1, 2, 0, 2, 0, 0, 1, 0, 1, 0, 2, 2, 0, 0, 1, 0, 1, 0, 2, 0
OFFSET
0,4
FORMULA
a(2n) = 2[a(n)==2], a(2n+1) = (a(n)+1) mod 3.
MATHEMATICA
Nest[ Function[ l, {Flatten[(l /. {0 -> {0, 1}, 1 -> {0, 2}, 2 -> {2, 0}})]}], {0}, 7] (* Robert G. Wilson v, Mar 28 2005 *)
CROSSREFS
Sequence in context: A350594 A295859 A180160 * A322989 A322823 A334872
KEYWORD
nonn,easy
AUTHOR
Ralf Stephan, Dec 11 2004
STATUS
approved