OFFSET
0,4
LINKS
T. D. Noe, Table of n, a(n) for n = 0..100
MATHEMATICA
Collatz[n_] := NestWhileList[If[EvenQ[#], #/2, 3 # + 1] &, n, # > 1 &]; nn = 51; t = Table[0, {nn}]; n = -1; While[Min[Drop[t, 5]] == 0, n = n + 2; c = Collatz[n]; e = Select[c, EvenQ]; diff = 2*Length[e] - Length[c]; If[diff < nn - 1 && t[[diff + 2]] == 0, t[[diff + 2]] = n]]; t
CROSSREFS
KEYWORD
nonn
AUTHOR
T. D. Noe, Mar 04 2013
STATUS
approved