OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (5, -10, 10, -5, 1).
FORMULA
a(n)=A115127(n+2, 3), n>=2.
a(n) = n*(n+1)*(n^2+13n+46)/24 =a(n-1)+A005586(n). - Henry Bottomley, Oct 25 2001
G.f.: x*(5-6*x+2*x^2)/(1-x)^5.
a(1)=5, a(2)=19, a(3)=47, a(4)=95, a(5)=170, a(n)=5*a(n-1)- 10*a(n-2)+ 10*a(n-3)-5*a(n-4)+a(n-5). - Harvey P. Dale, Apr 28 2014
E.g.f.: (1/24)*x*exp(x)*(x^3 + 20*x^2 + 108*x + 120). - Enrique Navarrete, Feb 12 2026
MATHEMATICA
Table[n(n+1)(n^2+13n+46)/24, {n, 40}] (* or *) LinearRecurrence[ {5, -10, 10, -5, 1}, {5, 19, 47, 95, 170}, 40] (* Harvey P. Dale, Apr 28 2014 *)
CoefficientList[Series[(5 - 6 x + 2 x^2)/(1 - x)^5, {x, 0, 40}], x] (* Vincenzo Librandi, Apr 28 2014 *)
PROG
(PARI) a(n) = n*(n+1)*(n^2+13*n+46)/24 \\ Charles R Greathouse IV, Oct 21 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved
