OFFSET
0,7
COMMENTS
LINKS
Alois P. Heinz, Rows n = 0..1000, flattened
FORMULA
G.f.: G(t,x) = Product_{j>=1} ((1-(1-t)*x^{2*j-1})/(1-x^j)).
EXAMPLE
T(4,0) = 2 because we have [4], [2,2];
T(4,1) = 2 because we have [1,1,2], [1,1,1,1];
T(4,2) = 1 because we have [1,3];
Triangle starts:
1;
0,1;
1,1;
0,3;
2,2,1.
MAPLE
G := product((1-x^(2*j-1)+t*x^(2*j-1))/(1-x^j), j = 1 .. 100): Gser := simplify(series(G, x = 0, 32)); for n from 0 to 27 do P[n] := sort(coeff(Gser, x, n)) end do: for n from 0 to 27 do seq(coeff(P[n], t, i), i = 0 .. degree(P[n])) end do; # yields sequence in triangular form
# second Maple program:
b:= proc(n, i) option remember; expand(
`if`(n=0, 1, `if`(i<1, 0, add(b(n-i*j, i-1)*
`if`(j>0 and i::odd, x, 1), 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..25); # Alois P. Heinz, Sep 20 2016
MATHEMATICA
b[n_, i_] := b[n, i] = Expand[If[n==0, 1, If[i<1, 0, Sum[b[n-i*j, i-1]*If[j > 0 && OddQ[i], x, 1], {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, 25}] // Flatten (* Jean-François Alcover, Feb 07 2017, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Emeric Deutsch, Sep 19 2016
STATUS
approved