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.

A119863 Numbers k such that k^3 + k^2 + 1 is prime.

Original entry on oeis.org

1, 2, 3, 5, 8, 9, 11, 12, 23, 24, 26, 30, 35, 42, 44, 45, 47, 53, 56, 57, 62, 66, 68, 69, 71, 74, 86, 87, 89, 92, 101, 111, 120, 122, 123, 125, 140, 143, 147, 152, 170, 177, 179, 180, 191, 192, 195, 198, 203, 209, 219, 224, 230, 234, 239, 243, 245, 246, 254, 255, 263
Offset: 1

Views

Author

Parthasarathy Nambi, Jul 31 2006

Keywords

Examples

			92^3 + 92^2 + 1 = 787153 (prime), so 92 is in the sequence.
		

Crossrefs

Cf. A005574.

Programs

  • Maple
    a:=proc(n) if isprime(n^3+n^2+1)=true then n else fi end: seq(a(n),n=0..300); # Emeric Deutsch, Aug 04 2006
  • Mathematica
    Select[Range[300],PrimeQ[#^3+#^2+1]&] (* Harvey P. Dale, May 03 2014 *)
  • PARI
    is(n)=isprime(n^3+n^2+1) \\ Charles R Greathouse IV, Jan 21 2015

Extensions

More terms from Emeric Deutsch and R. J. Mathar, Aug 04 2006