OFFSET
0,1
COMMENTS
Empirical observation. All integers generated by polynomial for 0 < n <= 37 are prime with the exception of a(26) = 43^2 and a(29) = 43*61.
LINKS
Harvey P. Dale, 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
From Vincenzo Librandi, Jun 22 2015: (Start)
G.f.: (1927 - 4082*x + 2173*x^2)/(1-x)^3.
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3). (End)
E.g.f.: exp(x)*(1927 - 228*x + 9*x^2). - Elmo R. Oliveira, Feb 09 2025
MATHEMATICA
Table[9 n^2 - 237 n + 1927, {n, 0, 25}] (* Michael De Vlieger, Jun 12 2015 *)
LinearRecurrence[{3, -3, 1}, {1927, 1699, 1489}, 50] (* Harvey P. Dale, Oct 08 2024 *)
PROG
(PARI) vector(50, n, 9*n^2 - 237*n + 1927) \\ Michel Marcus, Jun 21 2015
(Magma) [9*n^2-237*n+1927: n in [0..50]]; // Vincenzo Librandi, Jun 22 2015
CROSSREFS
KEYWORD
nonn,easy,less
AUTHOR
Robert Potter, Jun 12 2015
STATUS
approved