OFFSET
1,1
EXAMPLE
For n=1, the trajectory from n down to 8 comprises a(1) = 7 terms: 1 -> 2 -> 4 -> 6 -> 7 -> 9 -> 8.
MAPLE
MATHEMATICA
s[n_] := 2 + Plus @@ Times @@@ FactorInteger[n]; s[1] = 2; a[n_] := Length@ NestWhileList[s, n, # != 8 &]; Array[a, 100] (* Amiram Eldar, Nov 07 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Rafik Khalfi, Nov 03 2024
STATUS
approved