OFFSET
1,3
EXAMPLE
a(9)= 7 because 9 -> sigma(9)= 13 -> sigma(13)= 14 -> 7 -> sigma(7)= 8 -> 4 -> 2 -> 1, hence the trajectory {9 -> 13 -> 14 -> 7 -> 8 -> 4 -> 2 -> 1} with 7 iterations.
MATHEMATICA
f[n_]:=Module[{a=n, k=0}, While[a!=1, k++; If[EvenQ[a], a=a/2, a=DivisorSigma[1, a]]]; k]; Table[f[n], {n, 1, 150}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Michel Lagneau, Jul 07 2015
STATUS
approved