OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..150
MAPLE
with(combinat):
T:= proc(n, j) option remember; binomial(n-1, j-1)*n^(n-j) end:
b:= proc(n, i) option remember; `if`(n=0 or i=1, x^n,
expand(add((i-1)!^j*multinomial(n, n-i*j, i$j)/j!*
x^(igcd(i, 4)*j)*b(n-i*j, i-1), j=0..n/i)))
end:
a:= n-> add((p-> add(n^i*T(n, j)* coeff(p, x, i),
i=0..degree(p)))(b(j$2)), j=0..n):
seq(a(n), n=0..20);
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Aug 06 2014
STATUS
approved