OFFSET
1,1
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..200
MATHEMATICA
NextPrim[n_Integer] := Block[ {k = n + 1}, While[ !PrimeQ[k], k++ ]; Return[k]]; a[1] = 13; a[n_] := NextPrim[ 2*a[n - 1]]; Table[ a[n], {n, 1, 35} ]
NestList[NextPrime[2#]&, 13, 30] (* Harvey P. Dale, Feb 25 2015 *)
PROG
(PARI) { for (n=1, 200, if (n>1, a=nextprime(2*a), a=13); write("b065546.txt", n, " ", a) ) } \\ Harry J. Smith, Oct 21 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Nov 28 2001
STATUS
approved