A287516 Start with 0 and repeatedly substitute 0->012, 1->102, 2->021.
0, 1, 2, 1, 0, 2, 0, 2, 1, 1, 0, 2, 0, 1, 2, 0, 2, 1, 0, 1, 2, 0, 2, 1, 1, 0, 2, 1, 0, 2, 0, 1, 2, 0, 2, 1, 0, 1, 2, 1, 0, 2, 0, 2, 1, 0, 1, 2, 0, 2, 1, 1, 0, 2, 0, 1, 2, 1, 0, 2, 0, 2, 1, 0, 1, 2, 0, 2, 1, 1, 0, 2, 1, 0, 2, 0, 1, 2, 0, 2, 1, 1, 0, 2, 0, 1
Offset: 1
Examples
First three iterations of the morphism: 012, 012102021, 012102021102012021012021102.
Links
Programs
-
Mathematica
s = Nest[Flatten[# /. {0->{0, 1, 2}, 1->{1, 0, 2}, 2->{0, 2, 1}}] &, {0}, 9]; (*A287516*) Flatten[Position[s, 0]]; (*A287517*) Flatten[Position[s, 1]]; (*A287518*) Flatten[Position[s, 2]]; (*A287519*) SubstitutionSystem[{0->{0,1,2},1->{1,0,2},2->{0,2,1}},{0},{5}][[1]] (* Harvey P. Dale, Dec 22 2024 *)
Comments