OFFSET
1,1
COMMENTS
If instead we had: a(n) = the smallest prime >= a(n-1) + p(n) - p(n-1), then {a(k)} would simply be the sequence of primes, obviously.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MAPLE
A156830 := proc(n) option remember; if n = 1 then 2; else nextprime(procname(n-1)+ithprime(n)-ithprime(n-1)) ; fi; end: seq(A156830(n), n=1..120) ; # R. J. Mathar, Feb 22 2009
MATHEMATICA
nxt[{n_, a_}]:={n+1, NextPrime[a-Prime[n]+Prime[n+1]]}; NestList[nxt, {1, 2}, 60][[All, 2]] (* Harvey P. Dale, Sep 23 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Feb 16 2009
EXTENSIONS
Extended by R. J. Mathar, Feb 22 2009
STATUS
approved