A288577 Image of 0 under repeated application of the morphism phi = {x -> x,x+1,x+2 if x mod 3 = 0; x -> x+1 if x mod 3 = 1 or 2, for x = 0,1,2,3,...}.
0, 1, 2, 2, 3, 3, 3, 4, 5, 3, 4, 5, 3, 4, 5, 5, 6, 3, 4, 5, 5, 6, 3, 4, 5, 5, 6, 6, 6, 7, 8, 3, 4, 5, 5, 6, 6, 6, 7, 8, 3, 4, 5, 5, 6, 6, 6, 7, 8, 6, 7, 8, 6, 7, 8, 8, 9, 3, 4, 5, 5, 6, 6, 6, 7, 8, 6, 7, 8, 6, 7, 8, 8, 9, 3, 4, 5, 5, 6, 6, 6, 7, 8, 6, 7, 8, 6, 7, 8, 8, 9, 6, 7, 8, 8, 9, 6, 7, 8, 8, 9, 9, 9, 10, 11
Offset: 0
Keywords
References
- Kerry Mitchell, Posting to Sequence Fans Mailing List, Jun 30 2017
Links
- Kerry Mitchell, Table of n, a(n) for n = 0..13744
Crossrefs
Cf. A104324.
Programs
-
Mathematica
SubstitutionSystem[{x_ -> If[Mod[x, 3] == 0, {x, x+1, x+2}, {x+1}]}, {0}, 7] // Last (* Jean-François Alcover, Jan 21 2018 *)
Extensions
More terms from Kerry Mitchell, Jul 01 2017
Comments