OFFSET
1,1
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..10000
FORMULA
a(n)^2 * ( a(n)-1 )-1 = A162291(n).
EXAMPLE
a(1)=2 since 2^3-2^2-1=3 is prime.
a(2)=3 since 3^3-3^2-1=17 is prime.
a(3)=4 since 4^3-4^2-1=47 is prime.
MATHEMATICA
lst={}; Do[s=n^3-n^2; If[PrimeQ[s-1], AppendTo[lst, n]], {n, 6!}]; lst
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Jun 30 2009
EXTENSIONS
Comments moved to the examples by R. J. Mathar, Sep 11 2009
STATUS
approved