OFFSET
1,2
COMMENTS
A093702(n) = 1+a(n)*n.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
For n=3: we have a(2)=2, so we want the smallest number m > 2 such that n*m+1 = 3*m+1 is prime. m=3 fails but m=4 works, so a(3) = m = 4. - N. J. A. Sloane, Dec 13 2018
MATHEMATICA
nxt[{n_, a_}]:=Module[{m=a+1}, While[!PrimeQ[m(n+1)+1], m++]; {n+1, m}]; NestList[ nxt, {1, 1}, 60][[All, 2]] (* Harvey P. Dale, Dec 13 2018 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Apr 10 2004
STATUS
approved