OFFSET
1,3
LINKS
Eric Weisstein's World of Mathematics, Collatz Problem
MATHEMATICA
op[n_]:=Module[{lst=NestWhileList[If[EvenQ[#], #/2, 3#+1]&, n, #!=1&], m}, m= Max[Select[ lst, PrimeQ]]; If[m<3, 0, m]]; Array[op, 70] (* Harvey P. Dale, Apr 30 2011 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
G. L. Honaker, Jr., Jun 30 2000
EXTENSIONS
More terms from Larry Reeves (larryr(AT)acm.org), Aug 09 2001
STATUS
approved