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.

A162295 Primes of the form k^3-k^2-k-1.

Original entry on oeis.org

43, 173, 439, 1571, 3823, 10141, 21139, 38113, 83203, 122449, 154493, 172423, 191689, 433123, 468389, 673639, 1318789, 1392271, 1628989, 2388013, 2608889, 3771923, 4225121, 4546573, 4713239, 4883929, 6609139, 6822709, 7959799
Offset: 1

Views

Author

Keywords

Examples

			a(1)=4^3-4^2-4-1=43. a(2)=6^3-6^2-6-1=173.
		

Crossrefs

Cf. A087908, A162291, A111501, A162293, A162294, A162294 (corresponding k).

Programs

  • Mathematica
    lst={};Do[p=n^3-n^2-n-1;If[PrimeQ[p],AppendTo[lst,p]],{n,2,6!}];lst

Formula

a(n)=k^3-k^2-k-1 where k=A162294(n).

Extensions

Edited by R. J. Mathar, Jul 02 2009