OFFSET
1,1
COMMENTS
Dirichlet's theorem ensures that there always exists such a smallest prime because two primes are always coprime.
Corresponding values of b: 1,2,2,2,2,2,6,6,4, ... - Zak Seidov, Aug 29 2012
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
a(2) is the smallest prime of the form 5*b+3 and b > 0. Hence a(2) = 13.
MATHEMATICA
a[n_] := Module[{k}, k = 1; While[Not[PrimeQ[k*Prime[n + 1] + Prime[n]]], k++ ]; k*Prime[n + 1] + Prime[n]]; Table[a[i], {i, 1, 50}]
sp[{a_, b_}]:=Module[{n=1}, While[!PrimeQ[n*b+a], n++]; n*b+a]; sp/@Partition[ Prime[Range[60]], 2, 1] (* Harvey P. Dale, Jan 02 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot, Jun 05 2007
EXTENSIONS
Edited and extended by Stefan Steinerberger, Jul 16 2007
STATUS
approved