OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..150
FORMULA
a(n) = (3n)! * [x^(3n)] exp(Sum_{j=1..n} x^j/j!).
a(n) = A229223(3n,n).
MAPLE
G:= proc(n, k) option remember; local j; if k>n then G(n, n)
elif n=0 then 1 elif k<1 then 0 else G(n-k, k);
for j from k-1 to 1 by -1 do %*(n-j)/j +G(n-j, k) od; % fi
end:
a:= n-> G(3*n, n):
seq(a(n), n=0..20);
MATHEMATICA
G[n_, k_] := G[n, k] = Module[{j, g}, Which[k > n, G[n, n], n == 0, 1, k < 1, 0, True, g = G[n - k, k]; For[j = k - 1, j >= 1, j--, g = g(n-j)/j + G[n - j, k]]; g]];
a[n_] := G[3n, n];
a /@ Range[0, 20] (* Jean-François Alcover, Dec 10 2020, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Sep 22 2013
STATUS
approved