OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
László Németh, Tetrahedron trinomial coefficient transform, arXiv:1905.13475 [math.CO], 2019.
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n) = n*(n^2 + 12*n + 23)/6. - Ralf Stephan, Feb 15 2004; corrected by Lucas Sidiropoulos (lsid77(AT)yahoo.com), Jun 23 2008
From Colin Barker, Jun 20 2012: (Start)
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4).
G.f.: x*(2 - x)*(3 - 2*x)/(1 - x)^4. (End)
E.g.f.: exp(x)*x*(36 + 15*x + x^2)/6. - Stefano Spezia, Mar 28 2023
MATHEMATICA
CoefficientList[Series[(2-x)*(3-2*x)/(1-x)^4, {x, 0, 40}], x] (* Vincenzo Librandi, Jun 29 2012 *)
LinearRecurrence[{4, -6, 4, -1}, {6, 17, 34, 58}, 50] (* Harvey P. Dale, Aug 10 2014 *)
PROG
(Magma) I:=[6, 17, 34, 58]; [n le 4 select I[n] else 4*Self(n-1)-6*Self(n-2)+4*Self(n-3)-Self(n-4): n in [1..50]]; // Vincenzo Librandi, Jun 29 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved