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