login
Fixed point of morphism 0 -> 01, 1 -> 02, 2 -> 11.
0

%I #8 Oct 01 2016 20:39:20

%S 0,1,0,2,0,1,1,1,0,1,0,2,0,2,0,2,0,1,0,2,0,1,1,1,0,1,1,1,0,1,1,1,0,1,

%T 0,2,0,1,1,1,0,1,0,2,0,2,0,2,0,1,0,2,0,2,0,2,0,1,0,2,0,2,0,2,0,1,0,2,

%U 0,1,1,1,0,1,0,2,0,2,0,2,0,1,0,2,0,1,1,1,0,1,1,1,0,1,1,1,0,1,0,2,0,1,1,1,0

%N Fixed point of morphism 0 -> 01, 1 -> 02, 2 -> 11.

%H <a href="/index/Fi#FIXEDPOINTS">Index entries for sequences that are fixed points of mappings</a>

%F a(2n) = [a(n)==2], a(2n+1) = 1 + [a(n)==1].

%t Nest[ Function[ l, {Flatten[(l /. {0 -> {0, 1}, 1 -> {0, 2}, 2 -> {1, 1}})]}], {0}, 7] (* _Robert G. Wilson v_, Feb 26 2005 *)

%K nonn,easy

%O 0,4

%A _Ralf Stephan_, Dec 11 2004