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.

A125881 Numbers k for which k^3+k^2-1 is prime.

Original entry on oeis.org

2, 4, 5, 6, 9, 11, 12, 14, 19, 22, 25, 26, 27, 29, 32, 34, 36, 37, 40, 44, 47, 49, 55, 60, 62, 64, 65, 69, 70, 71, 81, 82, 84, 89, 95, 97, 106, 107, 114, 119, 121, 125, 127, 132, 139, 140, 141, 144, 147, 155, 159, 161, 165, 172, 174, 179, 184, 190, 201, 204
Offset: 1

Views

Author

Artur Jasinski, Dec 14 2006

Keywords

Comments

Generating polynomial belongs to the family of irreducible polynomials (or trinomials) of the form x^n+x^(n-1)-1.

Crossrefs

Programs

  • Mathematica
    Do[If[PrimeQ[x^3 + x^2 - 1], Print[x]], {x, 1, 100}]
    Select[Range[250], PrimeQ[#^3 + #^2 - 1] &] (* Harvey P. Dale, Jan 20 2015 *)
  • PARI
    isok(n) = isprime(n^3+n^2-1); \\ Michel Marcus, Nov 08 2013

Extensions

More terms from Michel Marcus, Nov 08 2013