OFFSET
0,2
COMMENTS
Main diagonal of number array A082110.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1).
FORMULA
a(n) = n^4 + 5*n^2 + 1.
G.f.: (1+2*x+12*x^2+2*x^3+7*x^4) / (1-x)^5. - R. J. Mathar, Dec 03 2014
E.g.f.: (1 + 6*x + 12*x^2 + 6*x^3 + x^4)*exp(x). - G. C. Greubel, Dec 22 2022
MATHEMATICA
Table[n^4+5n^2+1, {n, 0, 40}] (* or *) LinearRecurrence[{5, -10, 10, -5, 1}, {1, 7, 37, 127, 337}, 40] (* Harvey P. Dale, May 16 2019 *)
PROG
(Magma) [n^4+5*n^2+1: n in [0..40]]; // G. C. Greubel, Dec 22 2022
(SageMath) [n^4+5*n^2+1 for n in range(41)] # G. C. Greubel, Dec 22 2022
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Apr 04 2003
STATUS
approved