OFFSET
1,6
LINKS
Zak Seidov, Table of n, a(n) for n = 1..200.
MATHEMATICA
a[1] = {2, 0}; a[n_] := a[n] = Block[{m = 2a[n - 1][[1]], k = a[n - 1][[2]]}, While[ !PrimeQ[m + k], k++ ]; {m + k, k}]; Table[ a[n][[2]], {n, 59}] (* Robert G. Wilson v, Apr 08 2005 *)
PROG
(PARI) a=2; print1(k=0, ", "); for(n=2, 59, j=k; while(!isprime(2*a+j), j++); print1(k=j, ", "); a=2*a+k) \\ Klaus Brockhaus
CROSSREFS
KEYWORD
nonn
AUTHOR
Yasutoshi Kohmoto, Apr 08 2005
EXTENSIONS
Edited, corrected and extended by Klaus Brockhaus and Robert G. Wilson v, Apr 08 2005
STATUS
approved