OFFSET
0,1
COMMENTS
|a(n)| are distinct noncomposite numbers for n = 0 to 35.
The values of this polynomial are never divisible by a prime less than 53.
LINKS
Arkadiusz Wesolowski, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
G.f.: (3331 - 8830*x + 5777*x^2)/(1 - x)^3.
MAPLE
seq(139*n^2-2307*n+3331, n=0..37);
MATHEMATICA
Table[139*n^2 - 2307*n + 3331, {n, 0, 37}]
LinearRecurrence[{3, -3, 1}, {3331, 1163, -727}, 40] (* or *) CoefficientList[ Series[(3331-8830x+5777x^2)/(1-x)^3, {x, 0, 40}], x] (* Harvey P. Dale, Jul 06 2021 *)
PROG
(Magma) [139*n^2-2307*n+3331 : n in [0..37]];
(PARI) for(n=0, 37, print1(139*n^2-2307*n+3331, ", "));
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Arkadiusz Wesolowski, Oct 29 2013
STATUS
approved