OFFSET
0,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..100
EXAMPLE
a(3) = 13 == 3 (mod 5), a(4) = 17 == 4 (mod 13), 73 == 5 (mod 17).
MATHEMATICA
nw[{n_, a_}]:=NestWhile[#+a&, a+n+1, !PrimeQ[#]&]; nxt[{n_, a_}]:={n+1, nw[{n, a}]}; Transpose[NestList[nxt, {0, 2}, 25]][[2]] (* Harvey P. Dale, Jun 10 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Sep 11 2003
EXTENSIONS
More terms from Ray Chandler, Sep 14 2003
STATUS
approved