OFFSET
1,3
EXAMPLE
n=101: the trajectory is {101, 470, 100, 31, 97, 445, 3397, 51065, 1894513, 234421146, 1894512, 51064, 3396, 444, 96, 30, 12, 6, 3, 4, 2, 1}, number of required steps is a[101]=22-1=21.
MATHEMATICA
e[x_]:=e[x]=(1-Mod[x, 2])*Floor[N[x^(3/4), 50]] +Mod[x, 2]*Floor[N[x^(4/3), 50]]; e[1]=1; fe[x_]:=Delete[FixedPointList[e, x], -1]; Table[ -1+Length[fe[w]], {w, 1, 150}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jun 18 2004
STATUS
approved