OFFSET
0,1
LINKS
T. D. Noe, Table of n, a(n) for n = 0..10000
Eric Weisstein's World of Mathematics, Dirichlet's Theorem
Eric Weisstein's World of Mathematics, Linnik's Theorem
Wikipedia, Linnik's theorem
EXAMPLE
For n=10, the progression starts: 10, 21, 32, 43, 54, 65, 76, 87, 98, 109, etc., 43 is the first prime: a(10)=43.
MATHEMATICA
Table[k = 1; While[p = n + k*(n + 1); ! PrimeQ[p], k++]; p, {n, 0, 100}] (* Frank M Jackson, Oct 20 2011 *)
PROG
(Haskell)
a088732 n = head [q | q <- [2 * n + 1, 3 * n + 2 ..], a010051' q == 1]
-- Reinhard Zumkeller, Oct 01 2014
(Python)
from itertools import accumulate, repeat
from sympy import isprime
def A088732(n): return next(m for m in accumulate(repeat(n+1), initial=(n<<1)+1) if isprime(m)) # Chai Wah Wu, Aug 02 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Oct 12 2003
STATUS
approved