OFFSET
0,2
COMMENTS
a(4n+1) = a(4n+2) = 2, for all n >= 0. a(4n) and a(4n+3) are odd primes, for all n >= 0.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
EXAMPLE
a(8) + 9 = 11 + 9 = 20. The smallest prime divisor of 20 is 2. So a(9) = 2.
MATHEMATICA
a = {1}; Do[AppendTo[a, FactorInteger[n + a[[ -1]]][[1, 1]]], {n, 1, 100}]; a (* Stefan Steinerberger, Nov 25 2007 *)
nxt[{n_, a_}]:={n+1, FactorInteger[n+1+a][[1, 1]]}; Transpose[NestList[nxt, {0, 1}, 100]][[2]] (* Harvey P. Dale, Jan 21 2015 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Nov 21 2007
EXTENSIONS
More terms from Stefan Steinerberger, Nov 25 2007
STATUS
approved