OFFSET
0,10
COMMENTS
LINKS
Alois P. Heinz, Rows n = 0..200, flattened
FORMULA
G.f.: G(t,x) = Product_{j>=1} (1+t^j*x^j + x^{2*j}/(1 - x^j)).
EXAMPLE
T(7,5) = 2 because we have [3,2,1,1] and [5,1,1].
Triangle starts:
1;
0,1;
1,0,1;
1,0,0,2;
2,0,1,0,2;
MAPLE
g := product(1+t^j*x^j+x^(2*j)/(1-x^j), j = 1 .. 100): gser := simplify(series(g, x = 0, 25)): for n from 0 to 20 do P[n] := sort(coeff(gser, x, n)) end do: for n from 0 to 20 do seq(coeff(P[n], t, k), k = 0 .. n) end do; # yields sequence in triangular form
# second Maple program:
b:= proc(n, i) option remember; `if`(n=0, 1,
`if`(i<1, 0, add(expand(b(n-i*j, i-1)*
`if`(j=1, x^i, 1)), j=0..n/i)))
end:
T:= n-> (p-> seq(coeff(p, x, i), i=0..n))(b(n$2)):
seq(T(n), n=0..15); # Alois P. Heinz, Nov 27 2015
MATHEMATICA
b[n_, i_] := b[n, i] = If[n==0, 1, If[i<1, 0, Sum[Expand[b[n-i*j, i-1]*If[j == 1, x^i, 1]], {j, 0, n/i}]]]; T[n_] := Function[p, Table[Coefficient[p, x, i], {i, 0, n}]][b[n, n]]; Table[T[n], {n, 0, 15}] // Flatten (* Jean-François Alcover, Jan 29 2016, after Alois P. Heinz *)
CROSSREFS
AUTHOR
Emeric Deutsch, Nov 27 2015
STATUS
approved