OFFSET
0,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
MATHEMATICA
np[n_]:=Module[{p=NextPrime[2n]}, If[p<=2n, p, NextPrime[p, -1]]]; NestList[ np, 1, 40] (* Harvey P. Dale, Sep 29 2019 *)
PROG
(PARI) lista(nn) = {p = 1; for (n = 1, nn, print1(p, ", "); p = precprime(2*p); ); } \\ Michel Marcus, Aug 26 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jan 24 2012, following a suggestion from Frank M Jackson.
STATUS
approved