OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n) = A000217(n) + n^3.
From Colin Barker, Jan 20 2014: (Start)
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4).
G.f.: x*(x+1)*(x+2) / (x-1)^4. (End)
E.g.f.: (x/2)*(4 + 7*x + 2*x^2)*exp(x). - G. C. Greubel, Aug 24 2017
MATHEMATICA
CoefficientList[Series[(x + 1) (x + 2) / (x - 1)^4, {x, 0, 40}], x] (* or *) LinearRecurrence[{4, -6, 4, -1}, {2, 11, 33, 74}, 40] (* Vincenzo Librandi, Aug 14 2017 *)
PROG
(PARI) t(n)=n*(n+1)/2;
vector(40, i, t(i)+i^3)
(Magma) [n*(2*n^2 + n + 1)/2: n in [1..40]]; // Vincenzo Librandi, Aug 14 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jon Perry, Jul 23 2003
EXTENSIONS
Name changed by Wesley Ivan Hurt, Apr 30 2022
STATUS
approved