OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..411
EXAMPLE
a(2) = 4: aaaaaa, aaabbb, aabbba, abbbaa.
MAPLE
a:= n-> `if`(n=0, 1, add(add((-1)^i*(k-i)/n*add(binomial(3*n, j)
*(n-j)*(k-i-1)^j, j=0..n-1)/(i!*(k-i)!), i=0..k), k=0..n)):
seq(a(n), n=0..20);
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Oct 26 2018
STATUS
approved