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.

A136240 Numbers n among A006093 such that n^2 + n + 1 is prime.

Original entry on oeis.org

1, 2, 6, 12, 66, 78, 138, 150, 162, 192, 336, 348, 378, 456, 540, 612, 642, 726, 768, 918, 990, 1020, 1092, 1116, 1200, 1230, 1380, 1422, 1548, 1566, 1596, 1620, 1692, 1746, 1788, 1800, 1932, 1986, 2010, 2016, 2112, 2136, 2142, 2238, 2280, 2556, 2646
Offset: 1

Views

Author

Lekraj Beedassy, Dec 23 2007

Keywords

Comments

See A074268 for the primes associated with a(n).

Crossrefs

Cf. A136241.

Programs

  • Mathematica
    Select[Prime[Range[400]]-1,PrimeQ[#^2+#+1]&] (* Harvey P. Dale, Feb 11 2022 *)
  • PARI
    isA136240(n) = {isprime(n+1) && isprime(n^2+n+1)} \\ Michel Marcus, Jul 28 2013

Formula

a(n) = A065508(n) - 1.
Showing 1-1 of 1 results.