OFFSET
1,1
COMMENTS
Essentially the same as A008864. [From R. J. Mathar, Oct 28 2008]
Only the first term is prime, the rest are even, and between any pair of adjacent terms a(n) and a(n+1), there is just one prime, namely prime(n+2). - David James Sycamore, Dec 07 2018
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
a(n+1) = a(n) + A001223(n+1) for n>1. - David James Sycamore, Dec 07 2018
EXAMPLE
a(1) = 3, so a(2) = 3 + (5-2) = 6,
a(3) = 6 + (7-5) = 8,
a(4) = 8 + (11-7) = 12; etc.
MATHEMATICA
NestList[#+NextPrime[#]-NextPrime[#, -1]&, 3, 60] (* Harvey P. Dale, Oct 13 2024 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Enoch Haga, Nov 26 2007
EXTENSIONS
Definition corrected and entry revised by David James Sycamore, Dec 07 2018
STATUS
approved