OFFSET
0,2
REFERENCES
R. L. Graham, D. E. Knuth and O. Patashnik, Concrete Mathematics, Addison-Wesley, 1989, pages 327, 341.
LINKS
Marko Riedel, Symbolic evaluation of the coefficients of a Stirling number generating function by partial fractions.
Index entries for linear recurrences with constant coefficients, signature (18,-141,630,-1767,3222,-3815,2826,-1188,216).
FORMULA
G.f.: 1/((1-z)*(1-2*z)*(1-3*z))^3.
a(n) = Sum_{a+b+c=n} S2(a+3,3) * S2(b+3,3) * S2(c+3,3) where S2 is a Stirling number of the second kind.
MAPLE
b:= proc(n, i) option remember; `if`(i=0, 1, add(
Stirling2(j+3, 3)*b(n-j, i-1), j=`if`(i=1, n, 0..n)))
end:
a:= n-> b(n, 3):
seq(a(n), n=0..23); # Alois P. Heinz, Feb 24 2026
MATHEMATICA
CoefficientList[Series[1/((1-x)*(1-2*x)*(1-3*x))^3, {x, 0, 23}], x] (* Amiram Eldar, Feb 24 2026 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Marko Riedel, Feb 22 2026
STATUS
approved
