OFFSET
1,1
LINKS
T. D. Noe, Table of n, a(n) for n = 1..10000
T. D. Noe, Linear Plot
Eric Weisstein's World of Mathematics, Dirichlet's Theorem
EXAMPLE
n=4, the progression starts: 4, 9, 14, 19, 24, 29, 34, 39, 44, 49,
54, 59, 64, 69, 74, 79, 84, 89, etc., with primes 19, 29, 59, 79, 89, etc.,
79 is the fourth prime: a(4)=79.
MATHEMATICA
Table[k = 1; Do[While[p = n + k*(n + 1); ! PrimeQ[p], k++]; k++, {n}]; p, {n, 100}] (* T. D. Noe, Oct 20 2011 *)
PROG
(Haskell)
a088733 n = last $ take n $
[q | q <- [2 * n + 1, 3 * n + 2 ..], a010051' q == 1]
-- Reinhard Zumkeller, Oct 01 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Oct 12 2003
STATUS
approved