OFFSET
0,1
COMMENTS
|a(n)| are distinct primes for 0 <= n <= 39.
The values of this polynomial are never divisible by a prime less than 59.
LINKS
Arkadiusz Wesolowski, Table of n, a(n) for n = 0..1000
Eric Weisstein's World of Mathematics, Prime-Generating Polynomial.
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
G.f.: (27277 - 58460*x + 31457*x^2)/(1-x)^3.
From Elmo R. Oliveira, Feb 10 2025: (Start)
E.g.f.: exp(x)*(27277 - 3906*x + 137*x^2).
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) for n > 2. (End)
MAPLE
seq(137*n^2-4043*n+27277, n=0..39);
MATHEMATICA
Table[137*n^2 - 4043*n + 27277, {n, 0, 39}]
PROG
(Magma) [137*n^2-4043*n+27277: n in [0..39]];
(PARI) for(n=0, 39, print1(137*n^2-4043*n+27277, ", "));
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Arkadiusz Wesolowski, Jan 30 2016
STATUS
approved