OFFSET
1,1
LINKS
T. D. Noe, Table of n, a(n) for n = 1..130
MATHEMATICA
With[{s = 1 + Log2[3]}, {2}~Join~Table[(k = 3; While[-1 + Length@ NestWhileList[If[EvenQ[#], #/2, 3 # + 1] &, k, # >= k &] != m, k += 2]; k), {m, Array[Floor[1 + s*#] &, 50]}] ] (* Michael De Vlieger, Apr 19 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
T. D. Noe, Sep 06 2006
STATUS
approved