The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A105258 Triangle of trajectory of 1 under the morphism 1->2, 2->13, 3->1. 0

%I #11 Oct 02 2016 10:13:15

%S 1,1,2,1,2,2,1,3,1,2,2,1,3,2,1,3,1,3,2,1,1,2,2,1,3,2,1,3,1,3,2,1,2,1,

%T 3,1,3,2,1,1,3,2,1,2,1,1,3,2,1,2,2,1,3,2,1,3,1,3,2,1,2,1,3,1,3,2,1,1,

%U 3,2,1,2,1,1,3,2,2,1,3,1,3,2,1,1,3,2,1,2,1,1,3,2,1,3,2,1,2,1,1,3,2,2,1,1,3

%N Triangle of trajectory of 1 under the morphism 1->2, 2->13, 3->1.

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

%e The first steps are:

%e {1}

%e {1, 2}

%e {1, 2, 2, 1, 3}

%e {1, 2, 2, 1, 3, 2, 1, 3, 1, 3, 2, 1}

%t s[1] = {2}; s[2] = {1, 3}; s[3] = {1}; t[a_] := Join[a, Flatten[s /@ a]]; p[0] = {1}; p[1] = t[{1}]; p[n_] := t[p[n - 1]] aa = Flatten[Table[p[n], {n, 0, 6}]]

%o (PARI) {a(n)=local(m, v, w); v=w=[1]; while(length(w)<n, m=length(v); for(k=1, m, v=concat(v, [[2],[1,3],[1]][v[k]])); w=concat(w, v)); w[n]}

%Y Cf. A073058, A105111.

%K nonn,tabf

%O 0,3

%A _Roger L. Bagula_, Apr 14 2005

%E Edited by the Associate Editors of the OEIS, Apr 07 2009

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 31 22:12 EDT 2024. Contains 373007 sequences. (Running on oeis4.)