OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..5000
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1).
FORMULA
a(n) = n(n+1)(4n^2+8n-3)/6.
G.f.: x*(-3-14*x+x^2) / (x-1)^5 . - R. J. Mathar, Oct 08 2011
MATHEMATICA
Table[n (n + 1) (4 n^2 + 8 n - 3) / 6, {n, 40}] (* or *) LinearRecurrence[{5, -10, 10, -5, 1}, {3, 29, 114, 310, 685}, 60] (* Vincenzo Librandi, Aug 12 2018 *)
PROG
(Magma)[n*(n+1)*(4*n^2+8*n-3)/6: n in [1..60]]; // Vincenzo Librandi, Aug 12 2018
(PARI) a(n)=n*(n+1)*(4*n^2+8*n-3)/6 \\ Charles R Greathouse IV, Oct 21 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved