|
|
A105258
|
|
Triangle of trajectory of 1 under the morphism 1->2, 2->13, 3->1.
|
|
0
|
|
|
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, 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, 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
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
LINKS
|
|
|
EXAMPLE
|
The first steps are:
{1}
{1, 2}
{1, 2, 2, 1, 3}
{1, 2, 2, 1, 3, 2, 1, 3, 1, 3, 2, 1}
|
|
MATHEMATICA
|
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}]]
|
|
PROG
|
(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]}
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,tabf
|
|
AUTHOR
|
|
|
EXTENSIONS
|
Edited by the Associate Editors of the OEIS, Apr 07 2009
|
|
STATUS
|
approved
|
|
|
|