OFFSET
1,2
COMMENTS
MATHEMATICA
Take[#, 56] &@ Union@ Table[Total@ FixedPointList[Which[# == 1, 1, OddQ@ #, 3 # + 1, True, #/2] &, n] - 1, {n, 10^3}] (* Michael De Vlieger, Aug 02 2016 *)
PROG
(Magma) Set(Sort([&+[k eq 1 select n else IsOdd(Self(k-1)) and not IsOne(Self(k-1)) select 3*Self(k-1)+1 else Self(k-1) div 2: k in [1..5*n]]: n in [1..2^10] | &+[k eq 1 select n else IsOdd(Self(k-1)) and not IsOne(Self(k-1)) select 3*Self(k-1)+1 else Self(k-1) div 2: k in [1..5*n]] le 2^10]))
CROSSREFS
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, Jul 31 2016
STATUS
approved