OFFSET
1,2
COMMENTS
The map is x -> (3x+1)/2 for odd x, and x -> x/2 for even x.
REFERENCES
R. K. Guy, Unsolved Problems in Number Theory, E16.
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
J. C. Lagarias, The 3x+1 problem and its generalizations, Amer. Math. Monthly, 92 (1985), 3-23.
PROG
(PARI) f(n) = if (n%2, (3*n+1)/2, n/2); \\ A014682
a(n) = my(last = n); while (1, my(new = f(f(last))); if (new == last, return(new)); last = new; ); \\ Michel Marcus, Feb 03 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from Max Alekseyev, Oct 14 2012
STATUS
approved