Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A105258
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A105258 Triangle of trajectory of 1 under the morphism 1->2, 2->13, 3->1. +0
1
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; listen)
OFFSET

0,3

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}]]

PROGRAM

(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

Cf. A073058, A105111.

Sequence in context: A107030 A050362 A095686 this_sequence A160696 A152545 A109967

Adjacent sequences: A105255 A105256 A105257 this_sequence A105259 A105260 A105261

KEYWORD

nonn

AUTHOR

Roger Bagula (rlbagulatftn(AT)yahoo.com), Apr 14 2005

EXTENSIONS

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

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 23 17:09 EST 2009. Contains 167438 sequences.


AT&T Labs Research