A287407 Start with 0 and repeatedly substitute 0->012, 1->210, 2->201.
0, 1, 2, 2, 1, 0, 2, 0, 1, 2, 0, 1, 2, 1, 0, 0, 1, 2, 2, 0, 1, 0, 1, 2, 2, 1, 0, 2, 0, 1, 0, 1, 2, 2, 1, 0, 2, 0, 1, 2, 1, 0, 0, 1, 2, 0, 1, 2, 2, 1, 0, 2, 0, 1, 2, 0, 1, 0, 1, 2, 2, 1, 0, 0, 1, 2, 2, 1, 0, 2, 0, 1, 2, 0, 1, 2, 1, 0, 0, 1, 2, 2, 0, 1, 0, 1
Offset: 1
Examples
First three iterations of the morphism: 012, 012210201, 012210201201210012201012210.
Links
Programs
-
Mathematica
s = Nest[Flatten[# /. {0->{0, 1, 2}, 1->{2, 1, 0}, 2->{2, 0, 1}}] &, {0}, 9]; (*A287407*) Flatten[Position[s, 0]]; (*A287408*) Flatten[Position[s, 1]]; (*A287409*) Flatten[Position[s, 2]]; (*A287410*) SubstitutionSystem[{0->{0,1,2},1->{2,1,0},2->{2,0,1}},0,{5}][[1]] (* Harvey P. Dale, Aug 03 2023 *)
Comments