A287561 Start with 0 and repeatedly substitute 0->0213, 1->2130, 2->1302, 3->3021.
0, 2, 1, 3, 1, 3, 0, 2, 2, 1, 3, 0, 3, 0, 2, 1, 2, 1, 3, 0, 3, 0, 2, 1, 0, 2, 1, 3, 1, 3, 0, 2, 1, 3, 0, 2, 2, 1, 3, 0, 3, 0, 2, 1, 0, 2, 1, 3, 3, 0, 2, 1, 0, 2, 1, 3, 1, 3, 0, 2, 2, 1, 3, 0, 1, 3, 0, 2, 2, 1, 3, 0, 3, 0, 2, 1, 0, 2, 1, 3, 3, 0, 2, 1, 0, 2
Offset: 1
Examples
First three iterations of the morphism: 0213 0213130221303021 0213130221303021213030210213130213022130302102133021021313022130
Links
Programs
Formula
a(n) = 4n - A287565(n) for n >= 1.
Comments