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”).

A144295
Where records occur in A144294.
3
1, 2, 4, 12, 82, 231, 380, 2990, 20954, 40953, 42852, 182492, 859647, 8039644, 11990003, 78269808, 3263358159, 6941215856
OFFSET
1,2
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(n, ", "); m = nm; ); ); } \\ Michel Marcus, Jun 25 2021
CROSSREFS
Sequence in context: A003180 A002080 A001206 * A119489 A353743 A217757
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