OFFSET
0,7
COMMENTS
LINKS
Alois P. Heinz, Rows n = 0..750, flattened
FORMULA
G.f.: product((1+tx^(2j-1))(1+x^(2j)), j=1..infinity).
EXAMPLE
T(8,2) = 4 because we have [7,1], [5,3], [5,2,1] and [4,3,1] ([8] and [6,2] do not qualify).
Triangle starts:
1;
0, 1;
1, 0;
0, 2;
1, 0, 1;
0, 3, 0;
MAPLE
g:=product((1+t*x^(2*j-1))*(1+x^(2*j)), j=1..25): gser:=simplify(series(g, x=0, 38)): P[0]:=1: for n from 1 to 26 do P[n]:=sort(coeff(gser, x^n)) od: for n from 0 to 26 do seq(coeff(P[n], t, j), j=0..floor(sqrt(n))) od; # yields sequence in triangular form
# second Maple program:
b:= proc(n, i) b(n, i):= `if`(n=0, [1], `if`(i<1, [], zip((x, y)->
x+y, b(n, i-1), `if`(i>n, [], [`if`(irem(i, 2)=0, [][], 0),
b(n-i, i-1)[]]), 0)))
end:
T:= proc(n) local l; l:= b(n, n); l[], 0$(1+floor(sqrt(n))-nops(l)) end:
seq (T(n), n=0..30); # Alois P. Heinz, Nov 21 2012
MATHEMATICA
rows = 25; coes = CoefficientList[Product[(1+t*x^(2j-1))(1+x^(2j)), {j, 1, rows}], {x, t}][[1 ;; rows]]; MapIndexed[Take[#1, Floor[Sqrt[#2[[1]]-1]]+1]&, coes] // Flatten (* Jean-François Alcover, May 13 2015 *)
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Emeric Deutsch, Feb 22 2006
STATUS
approved