OFFSET
5,3
COMMENTS
It is easy to show that every number n >= 5 eventually reaches 5. This was conjectured by Ali Sada. For A111234 sends a composite n > 5 to a smaller number, and sends a prime > 5 to a smaller number in two steps. Furthermore no number >= 5 can reach a number less than 5. So all numbers >= 5 eventually reach 5.
REFERENCES
Ali Sada, Email to N. J. A. Sloane, Jun 13 2019.
LINKS
Chai Wah Wu, Table of n, a(n) for n = 5..10000
MATHEMATICA
a[n_] := Module[{c = 0, x = n, y}, While[x != 5, y = Min[FactorInteger[x][[All, 1]]]; x = y + Quotient[x, y]; c++]; c];
Table[a[n], {n, 5, 100}] (* Jean-François Alcover, Jun 15 2019, from Python *)
PROG
(Python)
from sympy import factorint
def A308190(n):
c, x = 0, n
while x != 5:
y = min(factorint(x))
x = y + x//y
c += 1
return c # Chai Wah Wu, Jun 14 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jun 14 2019
STATUS
approved