OFFSET
1,3
LINKS
EXAMPLE
a(40) = 1 because in 1600k + 1 at k = 1, 1601 is the smallest prime;
a(61) = 46 because in the 46*46*k + 1 sequence the first prime appears at k = 46; it is 171167.
MATHEMATICA
Table[k = 1; While[! PrimeQ[k (n^2) + 1], k++]; k, {n, 94}] (* Michael De Vlieger, Dec 17 2016 *)
PROG
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved