A191258 Fixed point of the morphism 0->01, 1->02, 2->03, 3->001.
0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 0, 1, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 1, 0, 2, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 0, 1, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 0, 1, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 1, 0, 2, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 0, 1, 0, 1, 0, 2, 0, 1, 0, 3
Offset: 1
Programs
-
Mathematica
t = Nest[Flatten[# /. {0 -> {0, 1}, 1 -> {0, 2}, 2 -> {0, 3}, 3 -> {0, 0, 1}}] &, {0}, 10] (* A191258 *) Flatten[Position[t, 0]] (* A005408, the odds *) Flatten[Position[t, 1]] (* A191259 *) Flatten[Position[t, 2]] (* A191260 *) Flatten[SubstitutionSystem[{0->{0,1},1->{0,2},2->{0,3},3->{0,0,1}},{0},{10}]] (* Harvey P. Dale, Nov 27 2021 *)
Comments