OFFSET
1,1
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = (A038700(n)+1)/n.
EXAMPLE
a(5)=4 because the smallest prime in the sequence 5k-1 (4,9,14,19,24...) is 19 when k=4
PROG
(Haskell)
a053989 n = head [k | k <- [1..], a010051' (k * n - 1) == 1]
-- Reinhard Zumkeller, Feb 14 2013
(PARI) a(n)=my(j); while(!isprime(j++*n-1), ); j \\ Charles R Greathouse IV, Apr 18 2013
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Henry Bottomley, Apr 04 2000
STATUS
approved