Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.
%I #7 Aug 17 2022 11:19:44
%S 0,0,2,2,1,0,0,0,2,2,1,0,2,2,1,0,2,2,1,0,1,0,1,0,0,0,2,2,1,0,0,0,2,2,
%T 1,0,0,0,2,2,1,0,2,2,1,0,2,2,1,0,1,0,1,0,0,0,2,2,1,0,2,2,1,0,2,2,1,0,
%U 1,0,1,0,0,0,2,2,1,0,2,2,1,0,2,2,1,0
%N 0-limiting word of the morphism 0->10, 1->22, 2->0
%C Starting with 0, the first 5 iterations of the morphism yield words shown here:
%C 1st: 10
%C 2nd: 2210
%C 3rd: 002210
%C 4th: 1010002210
%C 5th: 221022101010002210
%C The 0-limiting word is the limit of the words for which the number of iterations is congruent to 0 mod 3.
%C Let U, V, W be the limits of u(n)/n, v(n)/n, w(n)/n, respectively. Then 1/U + 1/V + 1/W = 1, where
%C U = 2.28537528186132044169516884721360670506...,
%C V = 3.87512979416277882597397059430967806752...,
%C W = 3.28537528186132044169516884721360670506...
%C If n >=2, then u(n) - u(n-1) is in {1,2,4}, v(n) - v(n-1) is in {2,4,6}, and w(n) - w(n-1) is in {1,3,5,9}.
%H Clark Kimberling, <a href="/A287320/b287320.txt">Table of n, a(n) for n = 1..10000</a>
%e 3rd iterate: 002210
%e 6th iterate: 002210002210221022101010002210
%t s = Nest[Flatten[# /. {0 -> {1, 0}, 1 -> {2, 2}, 2 -> 0}] &, {0}, 12 (* A287320 *)
%t Flatten[Position[s, 0]] (* A287321 *)
%t Flatten[Position[s, 1]] (* A287322 *)
%t Flatten[Position[s, 2]] (* A287323 *)
%t SubstitutionSystem[{0->{1,0},1->{2,2},2->{0}},{2},{10}][[1]] (* _Harvey P. Dale_, Aug 17 2022 *)
%Y Cf. A287321, A287322, A287323, A287181. A298200.
%K nonn,easy
%O 1,3
%A _Clark Kimberling_, May 23 2017