OFFSET
0,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
MATHEMATICA
nxt[n_]:=Module[{k=2}, While[PrimeQ[k*n+1], k++]; k*n+1]; NestList[nxt, 4, 30] (* Harvey P. Dale, Mar 26 2014 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, May 30 2002
EXTENSIONS
More terms from Vladeta Jovovic, Jun 03 2002
STATUS
approved