A287401 Start with 0 and repeatedly substitute 0->012, 1->210, 2->120.
0, 1, 2, 2, 1, 0, 1, 2, 0, 1, 2, 0, 2, 1, 0, 0, 1, 2, 2, 1, 0, 1, 2, 0, 0, 1, 2, 2, 1, 0, 1, 2, 0, 0, 1, 2, 1, 2, 0, 2, 1, 0, 0, 1, 2, 0, 1, 2, 2, 1, 0, 1, 2, 0, 1, 2, 0, 2, 1, 0, 0, 1, 2, 2, 1, 0, 1, 2, 0, 0, 1, 2, 0, 1, 2, 2, 1, 0, 1, 2, 0, 1, 2, 0, 2, 1
Offset: 1
Examples
First three iterations of the morphism: 012, 012210102, 012210102102210012210012102.
Links
Programs
Formula
a(n) = (2*a(m) + (n-1)*(-1)^a(m)) mod 3, where m = 1 + floor((n-1)/3). - Max Alekseyev, Jul 11 2022
Comments