OFFSET
1,1
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = A117928(n,1) for n>1. - Reinhard Zumkeller, Apr 03 2006
EXAMPLE
n=17, 18, p(17)=59, p(18)=61, after 118 and 122 the next prime is 127, so a(17)=a(18)=127.
MAPLE
with(numtheory): [seq(nextprime(2*ithprime(k)), k=1..256)];
MATHEMATICA
NextPrime/@(2*Prime[Range[60]]) (* Harvey P. Dale, May 03 2019 *)
PROG
(PARI) a(n) = nextprime(2*prime(n)+1); \\ Michel Marcus, Sep 21 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Feb 22 2001
STATUS
approved