OFFSET
1,2
LINKS
T. D. Noe, Table of n, a(n) for n = 1..10000
EXAMPLE
a(5)=30 since Collatz trajectory of 5 is 5,16,8,4,2,1.
MATHEMATICA
Collatz[n_] := NestWhileList[If[EvenQ[#], #/2, 3 # + 1] &, n, # > 1 &]; Table[Total[Select[Collatz[n], EvenQ]], {n, 100}] (* T. D. Noe, Mar 05 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Jayanta Basu, Mar 05 2013
STATUS
approved