OFFSET
1,1
COMMENTS
Lagarias, page 270, appears to imply that this trajectory has period 12 and smallest element 144, which is not true.
REFERENCES
J. C. Lagarias, ed., The Ultimate Challenge: The 3x+1 Problem, Amer. Math. Soc., 2010; see page 270.
LINKS
MATHEMATICA
f[n_] := If[Mod[n, 3] == 0, 2*n/3, Round[4*n/3]]; a[1] = 144; a[n_] := a[n] = f[a[n - 1]]; Table[a[n], {n, 1, 59}] (* Jean-François Alcover, Jun 10 2013 *)
SubstitutionSystem[{n_ :> Switch[Mod[n, 3], 0, 2n/3, 1, (4n - 1)/3, _, (4n + 1)/3]}, {144}, 60] // Flatten (* Jean-François Alcover, Mar 01 2019 *)
PROG
(Haskell)
a185589 n = a185589_list !! (n-1)
a185589_list = iterate a006369 144 -- Reinhard Zumkeller, Dec 31 2011
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Feb 04 2011
STATUS
approved