login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A282630
Number of steps to reach 1 when starting from n and iterating the map x -> x - A055396(x).
2
0, 1, 1, 2, 2, 3, 2, 3, 3, 4, 4, 5, 3, 4, 4, 5, 5, 6, 5, 6, 6, 7, 5, 6, 8, 9, 9, 10, 6, 7, 7, 8, 8, 9, 9, 10, 9, 10, 10, 11, 11, 12, 7, 8, 8, 9, 9, 10, 9, 10, 10, 11, 10, 11, 12, 13, 13, 14, 13, 14, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 11, 12, 12, 13, 13, 14
OFFSET
1,4
COMMENTS
This sequence tends to infinity as n tends to infinity.
PROG
(PARI) a = vector(100); for (n=1, #a, if (n>1, a[n] = 1 + a[n - primepi(factor(n)[1, 1])]); print1 (a[n] ", "))
CROSSREFS
Cf. A055396.
Sequence in context: A286716 A029213 A029209 * A108309 A341307 A103469
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Apr 09 2017
STATUS
approved