OFFSET
2,3
EXAMPLE
Sequence {b_8(m)} is 0, 2, 5, 13, 7, 5, 13, 7, ... (5, 13, 7) repeats. So a(8) = 3, the length of the cycle in {b_8(m)}.
PROG
(PARI) a(n) = my(b, k, v=List([0])); until(k<#v, k=1; listput(v, b=vecmax(factor(b+n)[, 1])); until(v[k]==b||k==#v, k++)); #v-k; \\ Jinyuan Wang, Aug 22 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Nov 12 2007
EXTENSIONS
More terms from Jinyuan Wang, Aug 22 2021
STATUS
approved