%I #17 Jan 24 2020 01:00:15
%S 0,1,2,1,1,3,2,1,2,1,3,3,1,3,2,1,1,3,2,1,3,3,3,3,2,1,3,3,1,3,2,1,2,1,
%T 3,3,1,3,2,1,3,3,3,3,3,3,3,3,1,3,2,1,3,3,3,3,2,1,3,3,1,3,2,1,1,3,2,1,
%U 3,3,3,3,2,1,3,3,1,3
%N Trajectory of 0 under repeated application of the morphism 0 -> 01, 1 -> 21, 2 -> 13, 3 -> 33.
%H Robert Israel, <a href="/A316831/b316831.txt">Table of n, a(n) for n = 0..10000</a>
%H A. Cobham, <a href="https://doi.org/10.1109/SWAT.1968.20">On the Hartmanis-Stearns problem for a class of tag machines</a>, 9th Annual Symposium on Switching and Automata Theory (SWAT 1968)(FOCS), pp. 51-60, 1968; doi:10.1109/SWAT.1968.20. See Example 7.
%p f(0):= (0,1):
%p f(1):= (2,1):
%p f(2):= (1,3):
%p f(3):= (3,3):
%p A:= [0]:
%p for i from 1 to 8 do A:= map(f, A) od:
%p A; # _Robert Israel_, Jul 18 2018
%t Nest[ Flatten[# /. {0 -> {0, 1}, 1 -> {2, 1}, 2 -> {1, 3}, 3 -> {3, 3}}] &, {0}, 7] (* _Robert G. Wilson v_, Jul 18 2018 *)
%Y Cf. A086747, A316832.
%K nonn
%O 0,3
%A _N. J. A. Sloane_, Jul 18 2018
|