OFFSET
0,1
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
From Wesley Ivan Hurt, Oct 30 2014: (Start)
G.f.: 3*(1 -5*x +11*x^2 +x^3)/(1-x)^5.
a(n) = 5*a(n-1) -10*a(n-2) +10*a(n-3) -5*a(n-4) +a(n-5).
E.g.f.: (3 - 3*x + 3*x^2 + 6*x^3 + x^4)*exp(x). - G. C. Greubel, Mar 05 2020
MAPLE
MATHEMATICA
Table[(n^2 - 1)*(n^2 - 3), {n, 0, 30}] (* or *)
CoefficientList[Series[3 (1 - 5 x + 11 x^2 + x^3)/(1 - x)^5, {x, 0, 30}], x] (* Wesley Ivan Hurt, Oct 30 2014 *)
PROG
(Magma) [(n^2-1)*(n^2-3) : n in [0..30]]; // Wesley Ivan Hurt, Oct 30 2014
(PARI) vector(31, n, my(m=n-1); (m^2-1)*(m^2-3)) \\ G. C. Greubel, Mar 05 2020
(Sage) [(n^2-1)*(n^2-3) for n in (0..30)] # G. C. Greubel, Mar 05 2020
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved