OFFSET
2,7
COMMENTS
Conjecture: a(n) exists for every n >= 2.
LINKS
Amiram Eldar, Table of n, a(n) for n = 2..10000
EXAMPLE
f_1(12) = 12+2+1-1 = 14, f_1(14) = 14+1+1-1 = 15, f_1(15) = 15+1+1-1 = 16, f_1(16) = 16+4-1 = 19.
Since to get to a prime we used 4 iterations, a(12)=4.
MATHEMATICA
a[n_] := Block[{x = n, c = 0}, While[! PrimeQ[x], x = x-1 + Total[Last /@ FactorInteger[x]]; c++]; c]; a/@Range[2, 109] (* Giovanni Resta, Feb 16 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Shevelev, Feb 15 2013
EXTENSIONS
a(81) corrected by Giovanni Resta, Feb 16 2013
STATUS
approved