cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-1 of 1 results.

A213162 Smallest prime p such that (k+1)*p^2-k are prime for k=1..n.

Original entry on oeis.org

2, 199, 409, 17569, 981091, 3918251, 1329433951, 75902670689, 45048280453021
Offset: 1

Views

Author

Zak Seidov, Jun 06 2012

Keywords

Comments

a(1..8) are the first terms correspondingly in A106483, A213078, A213079, A213107, A213125, A213159, A213161, A213334.

Programs

  • PARI
    a(n) = {my(p = 2); until (ok, ok = 1; for (k = 1, n, if (! isprime((k+1)*p^2-k), ok = 0; break;);); if (!ok, p = nextprime(p+1);)); return (p);}  \\ Michel Marcus, Apr 19 2013

Extensions

a(9) from Tyler Busby, Jan 11 2023
Showing 1-1 of 1 results.