OFFSET
1,1
COMMENTS
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..300
EXAMPLE
a(2) = 103 = 6*17 + 1.
MATHEMATICA
t = {17}; Do[k = 1; While[p = k*t[[-1]] + 1; ! PrimeQ[p], k++]; AppendTo[t, p], {20}]; t (* T. D. Noe, Jul 24 2012 *)
nxt[n_]:=Module[{k=1}, While[!PrimeQ[k*n+1], k++]; k*n+1]; NestList[nxt, 17, 20] (* Harvey P. Dale, Apr 18 2014 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Robin Garcia, Jul 23 2012
STATUS
approved