OFFSET
1,2
COMMENTS
Produces 51 primes between 0 and 99.
LINKS
Joe L. Mott and Kermit Rose, Prime-Producing Cubic Polynomials.
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
G.f.: x*(1+69*x-135*x^2+71*x^3) / (x-1)^4 . - R. J. Mathar, Jan 25 2016
MATHEMATICA
Table[n^3 + 71*n + 1, {n, 0, 99}]
LinearRecurrence[{4, -6, 4, -1}, {1, 73, 151, 241}, 50] (* Harvey P. Dale, Oct 01 2021 *)
PROG
(Maxima) A124363(n):=n^3 + 71*n + 1$
makelist(A124363(n), n, 0, 30); /* Martin Ettl, Nov 08 2012 */
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, May 27 2007
STATUS
approved