OFFSET
0,2
LINKS
Vincenzo Librandi, 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) = 5*n*(3*n^2 - 3*n + 1).
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4).
a(n) = A064045(n, 3).
G.f.: 5*x*(7*x^2 + 10*x + 1)/(x-1)^4. [Colin Barker, Jul 21 2012]
MATHEMATICA
LinearRecurrence[{4, -6, 4, -1}, {0, 5, 70, 285}, 40] (* Harvey P. Dale, Dec 02 2012 *)
PROG
(Magma) [5*n*(3*n^2-3*n+1): n in [0..40]]; // Vincenzo Librandi, Jun 16 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Henry Bottomley, Aug 23 2001
STATUS
approved