OFFSET
1,2
COMMENTS
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3)=5 since Collatz trajectory of 3 contains terms 1,2,4,8 and 16.
MATHEMATICA
coll[n_]:=NestWhileList[If[EvenQ[#], #/2, 3#+1]&, n, #>1&]; Table[Length[Select[coll[n], IntegerQ[Log[2, #]]&]], {n, 87}]
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Jayanta Basu, May 27 2013
STATUS
approved