OFFSET
0,5
LINKS
Alois P. Heinz, Rows n = 0..200, flattened
EXAMPLE
T(5,1) = 2: [1,1,1,1,1], [5].
T(5,2) = 10: [1,1,1,2], [1,1,2,1], [1,2,1,1], [2,1,1,1], [1,2,2], [2,1,2], [2,2,1], [1,1,3], [1,3,1], [3,1,1].
Triangle T(n,k) begins:
1;
0, 1;
0, 2;
0, 2;
0, 3, 3;
0, 2, 10;
0, 4, 12;
0, 2, 38;
0, 4, 56;
0, 3, 79;
0, 4, 152, 60;
MAPLE
b:= proc(n, i, s) option remember; `if`(n=0, add(j, j=s)!,
`if`(i<1, 0, expand(add(`if`(j>0 and j in s, 0, `if`(j=0, 1, x)*
b(n-i*j, i-1, `if`(j=0, s, s union {j}))/j!), j=0..n/i))))
end:
T:= n-> (p-> seq(coeff(p, x, i), i=0..degree(p)))(b(n$2, {})):
seq(T(n), n=0..16);
MATHEMATICA
b[n_, i_, s_List] := b[n, i, s] = If[n == 0, Total[s]!, If[i<1, 0, Expand[ Sum[ If[j>0 && MemberQ[s, j], 0, If[j == 0, 1, x]*b[n-i*j, i-1, If[j == 0, s, s ~Union~ {j}]]/j!], {j, 0, n/i}]]]]; T[n_] := Function[{p}, Table[Coefficient[p, x, i], {i, 0, Exponent[p, x]}]][b[n, n, {}]]; Table[T[n], {n, 0, 16}] // Flatten (* Jean-François Alcover, Feb 11 2015, after Alois P. Heinz *)
CROSSREFS
Row sums give A242882.
KEYWORD
nonn,tabf
AUTHOR
Alois P. Heinz, May 25 2014
STATUS
approved