OFFSET
1,1
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10000
FORMULA
(a(n)-1)/2n = A051686(n), the smallest 2k-Germain primes.
EXAMPLE
PROG
(PARI) isp(q) = (denominator(q)==1) && isprime(q);
a(n) = {my(p = 2); while (!isp((p-1)/(2*n)), p = nextprime(p+1)); p; } \\ Michel Marcus, May 29 2018
(PARI) a(n) = forprime(p = 2, oo, q = 2 * p * n + 1; if(isprime(q), return(q))) \\ David A. Corneth, May 29 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Labos Elemer, Dec 16 1999
STATUS
approved