A287571 Start with 0 and repeatedly substitute 0->0312, 1->3120, 2->1203, 3->2031.
0, 3, 1, 2, 2, 0, 3, 1, 3, 1, 2, 0, 1, 2, 0, 3, 1, 2, 0, 3, 0, 3, 1, 2, 2, 0, 3, 1, 3, 1, 2, 0, 2, 0, 3, 1, 3, 1, 2, 0, 1, 2, 0, 3, 0, 3, 1, 2, 3, 1, 2, 0, 1, 2, 0, 3, 0, 3, 1, 2, 2, 0, 3, 1, 3, 1, 2, 0, 1, 2, 0, 3, 0, 3, 1, 2, 2, 0, 3, 1, 0, 3, 1, 2, 2, 0
Offset: 1
Examples
First three iterations of the morphism: 0312 0312203131201203 0312203131201203120303122031312020313120120303123120120303122031
Links
Programs
Formula
a(n) = 4n - A287574(n) for n >= 1.
Comments