login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A144296
Records in A144294.
2
3, 5, 7, 13, 17, 19, 31, 41, 43, 47, 53, 71, 79, 89, 103, 127, 131, 137
OFFSET
1,1
PROG
(PARI) f(n)=my(k=n+(sqrtint(4*n)+1)\2); forprime(p=2, , if(!issquare(Mod(k, p)), return(p))); \\ A144294
lista(nn) = {my(v=vector(nn, n, f(n))); my(m=0, nm=0); for (n=1, nn, nm = v[n]; if (nm > m, print1(nm, ", "); m = nm; ); ); } \\ Michel Marcus, Jun 25 2021
CROSSREFS
Sequence in context: A321363 A355853 A155045 * A045399 A122834 A174265
KEYWORD
nonn,more
AUTHOR
N. J. A. Sloane, Dec 03 2008
EXTENSIONS
a(9)-a(12) from R. J. Mathar, Dec 04 2008
a(13)-a(15) from Michel Marcus, Jun 25 2021
a(16)-a(18) from Michael S. Branicky, Sep 30 2024
STATUS
approved