A245555 Trajectory of 1 under the morphism 1 -> 12, 2 -> 23, 3 -> 31.
1, 2, 2, 3, 2, 3, 3, 1, 2, 3, 3, 1, 3, 1, 1, 2, 2, 3, 3, 1, 3, 1, 1, 2, 3, 1, 1, 2, 1, 2, 2, 3, 2, 3, 3, 1, 3, 1, 1, 2, 3, 1, 1, 2, 1, 2, 2, 3, 3, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 1, 2, 3, 3, 1, 3, 1, 1, 2, 3, 1, 1, 2, 1, 2, 2, 3, 3, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3
Offset: 1
Keywords
Links
Crossrefs
Programs
-
Mathematica
Nest[ Function[ l, {Flatten[(l /. {1 -> {1, 2}, 2 -> {2, 3}, 3 -> {3, 1}})] }], {1}, 9]
-
PARI
{a(n) = my(v = [1]); if( n<1, 0, while( #v
Michael Somos, Aug 05 2014 */
Formula
a(n) = A071858(n+1) + 1. - Michel Dekking, Sep 29 2020
Comments