login
A214332
Trajectory of 0 under the morphism 0 -> 01, 1 -> 202, 2 -> empty string.
1
0, 1, 2, 0, 2, 0, 1, 0, 1, 2, 0, 2, 0, 1, 2, 0, 2, 0, 1, 0, 1, 2, 0, 2, 0, 1, 0, 1, 2, 0, 2, 0, 1, 2, 0, 2, 0, 1, 0, 1, 2, 0, 2, 0, 1, 2, 0, 2, 0, 1, 0, 1, 2, 0, 2, 0, 1, 0, 1, 2, 0, 2, 0, 1, 2, 0, 2, 0, 1, 0, 1, 2, 0, 2, 0, 1, 0, 1, 2, 0, 2, 0, 1, 2, 0, 2, 0
OFFSET
0,3
REFERENCES
J.-P. Allouche and J. Shallit, Automatic Sequences, Cambridge Univ. Press, 2003, p. 228.
PROG
(Python)
from itertools import chain
A214332 = [0]
for _ in range(10):
....A214332 = list(chain.from_iterable(([0, 1] if d == 0 else [2, 0, 2] if d == 1 else [] for d in A214332)))
# Chai Wah Wu, Sep 05 2014
CROSSREFS
Sequence in context: A358233 A336121 A363795 * A164734 A090193 A039974
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jul 26 2012
STATUS
approved