OFFSET
1,2
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..1000
Eric Weisstein's World of Mathematics, Collatz Problem
Wikipedia, Collatz conjecture
MATHEMATICA
Collatz[n_] := NestWhileList[If[EvenQ[#], #/2, 3 # + 1] &, n, # > 1 &]; Join[{1, 2}, Select[Range[3, 10000], Union[Drop[PrimeQ[Collatz[#]], -2]] == {False} &]] (* T. D. Noe, Jan 22 2013 *)
PROG
(Haskell)
a196871 n = a196871_list !! (n-1)
a196871_list = filter
(all (== 0) . map a010051 . takeWhile (> 2) . iterate a006370) [1..]
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Oct 08 2011
STATUS
approved