OFFSET
0,2
REFERENCES
V. van der Noort and N. J. A. Sloane, Paper in preparation, 2007.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n) = n*(n+2)*(n-5).
From G. C. Greubel, Jan 29 2020: (Start)
G.f.: (-6)*x*(2 - 4*x + x^2)/(1-x)^4.
E.g.f.: x*(-12 + x^2)*exp(x). (End)
MAPLE
seq( n*(n+2)*(n-5), n=0..50); # G. C. Greubel, Jan 29 2020
MATHEMATICA
T[n_, k_]:= T[n, k]= If[k==0, 1, If[k==1, n, (n-k+1)*T[n+1, k-1] - (k-1)*(n+1)* T[n+2, k-2]]]; Table[T[n, 3], {n, 0, 50}] (* G. C. Greubel, Jan 29 2020 *)
PROG
(PARI) vector(50, n, my(m=n-1); m*(m+2)*(m-5) ) \\ G. C. Greubel, Jan 29 2020
(Magma) [n*(n+2)*(n-5): n in [0..50]]; // G. C. Greubel, Jan 29 2020
(Sage) [n*(n+2)*(n-5) for n in (0..50)] # G. C. Greubel, Jan 29 2020
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Vincent v.d. Noort, Mar 21 2007
STATUS
approved