OFFSET
5,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 5..10000
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n) = n*(n^2 + 15*n - 46)/6. - Ralf Stephan, Apr 30 2004
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4); a(5)=45, a(6)=80, a(7)=126, a(8)=184. - Harvey P. Dale, Nov 05 2011
G.f.: x^5*(45 - 100*x + 76*x^2 - 20*x^3)/(1-x)^4. - Colin Barker, Sep 17 2012
MATHEMATICA
Table[n (n^2+15n-46)/6, {n, 5, 60}] (* or *) LinearRecurrence[{4, -6, 4, -1}, {45, 80, 126, 184}, 60] (* Harvey P. Dale, Nov 05 2011 *)
PROG
(Magma) [n*(n^2+15*n-46)/6: n in [5..60]]; // Vincenzo Librandi, Nov 15 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved