OFFSET
0,1
COMMENTS
The formula gives consecutive primes for n from 1 to 20, except n=9.
This is the case m=41*6=246 and k=41 of the polynomial m^2*n^2 + (m^2 - 2*m)*n + (m^2*k) - (m-1).
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
G.f.: (2481403-4963298*x+2602927*x^2)/(1-x)^3. - Bruno Berselli, Aug 28 2012
MAPLE
A215814:=n->60516*n^2 - 61008*n + 2481403; seq(A215814(n), n=0..100); # Wesley Ivan Hurt, Nov 28 2013
MATHEMATICA
Table[60516 n^2 - 61008 n + 2481403, {n, 0, 30}] (* Vincenzo Librandi, Aug 29 2012 *)
PROG
(Magma) [60516*n^2-61008*n+2481403: n in [0..26]]; // Bruno Berselli, Aug 28 2012
(PARI) a(n)=60516*n^2-61008*n+2481403 \\ Charles R Greathouse IV, Jun 17 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Robert Potter, Aug 28 2012
EXTENSIONS
Offset changed from 1 to 0 and a(0) added from Vincenzo Librandi, Aug 29 2012
Gf adapted to the offset by Bruno Berselli, Aug 29 2012
STATUS
approved