OFFSET
1,8
COMMENTS
FORMULA
G.f.: G(t,x) = Sum_{j>0} t*x^j*(Product_{i=1..j-1} 1+t*x^i)/(1-t*x^j).
T(n,k) = T(n-k,k) + T(n-k,k-1) where T(n,n)=1 and T(n,k)=0 when n<k. - Tricia Muldoon Brown, Jul 19 2016
EXAMPLE
T(10,3) = 5 because we have [3,3,2,2],[3,3,2,1,1],[3,2,2,2,1],[3,2,2,1,1,1] and [3,2,1,1,1,1,1].
Triangle starts:
1;
1,1;
1,1,1;
1,2,0,1;
1,2,1,0,1;
1,3,2,0,0,1;
MAPLE
g:=sum(t*x^j*product(1+t*x^i, i=1..j-1)/(1-t*x^j), j=1..50): gser:=simplify(series(g, x=0, 18)): 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:
T:= proc(n, k) option remember; `if`(k<1 or k>n, 0,
`if`(n=k, 1, T(n-k, k) +T(n-k, k-1)))
end:
seq(seq(T(n, k), k=1..n), n=1..20); # Alois P. Heinz, Jul 19 2016
MATHEMATICA
Table[Count[IntegerPartitions@ n, m_ /; And[SubsetQ[m, Range[Min@ m, k]], Max@ m <= k]], {n, 14}, {k, n}] // Flatten (* Michael De Vlieger, Jul 19 2016 *)
T[_, 1] = 1; T[n_, n_] = 1; T[n_, k_] /; 1<k<n := T[n, k] = T[n-k, k] + T[n - k, k-1]; T[_, _] = 0; Table[T[n, k], {n, 1, 20}, {k, 1, n}] // Flatten (* Jean-François Alcover, Aug 29 2016, adapted from Maple *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Emeric Deutsch, Mar 19 2006
STATUS
approved