cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A360742 Number T(n,k) of sets of nonempty integer partitions with a total of k parts and total sum of n; triangle T(n,k), n>=0, 0<=k<=n, read by rows.

This page as a plain text file.
%I A360742 #28 Nov 15 2023 08:09:30
%S A360742 1,0,1,0,1,1,0,1,2,2,0,1,3,3,2,0,1,4,6,5,3,0,1,5,10,10,7,4,0,1,6,14,
%T A360742 19,16,10,5,0,1,7,19,30,32,24,14,6,0,1,8,26,46,57,52,35,19,8,0,1,9,32,
%U A360742 67,94,97,79,50,25,10,0,1,10,40,93,147,172,157,117,69,33,12
%N A360742 Number T(n,k) of sets of nonempty integer partitions with a total of k parts and total sum of n; triangle T(n,k), n>=0, 0<=k<=n, read by rows.
%H A360742 Alois P. Heinz, <a href="/A360742/b360742.txt">Rows n = 0..200, flattened</a>
%F A360742 T(n,n) + T(n+1,n) = T(n+2,n+1) for n>=0.
%e A360742 T(6,3) = 10: {[1,1,4]}, {[1,2,3]}, {[2,2,2]}, {[1],[1,4]}, {[1],[2,3]}, {[2],[1,3]}, {[2],[2,2]}, {[3],[1,2]}, {[4],[1,1]}, {[1],[2],[3]}.
%e A360742 Triangle T(n,k) begins:
%e A360742   1;
%e A360742   0, 1;
%e A360742   0, 1, 1;
%e A360742   0, 1, 2,  2;
%e A360742   0, 1, 3,  3,  2;
%e A360742   0, 1, 4,  6,  5,  3;
%e A360742   0, 1, 5, 10, 10,  7,  4;
%e A360742   0, 1, 6, 14, 19, 16, 10,  5;
%e A360742   0, 1, 7, 19, 30, 32, 24, 14,  6;
%e A360742   0, 1, 8, 26, 46, 57, 52, 35, 19,  8;
%e A360742   0, 1, 9, 32, 67, 94, 97, 79, 50, 25, 10;
%e A360742   ...
%p A360742 h:= proc(n, i) option remember; expand(`if`(n=0, 1,
%p A360742       `if`(i<1, 0, h(n, i-1)+x*h(n-i, min(n-i, i)))))
%p A360742     end:
%p A360742 g:= proc(n, i, j) option remember; expand(`if`(j=0, 1, `if`(i<0, 0, add(
%p A360742       g(n, i-1, j-k)*x^(i*k)*binomial(coeff(h(n$2), x, i), k), k=0..j))))
%p A360742     end:
%p A360742 b:= proc(n, i) option remember; expand(`if`(n=0, 1,
%p A360742      `if`(i<1, 0, add(b(n-i*j, i-1)*g(i$2, j), j=0..n/i))))
%p A360742     end:
%p A360742 T:= (n, k)-> coeff(b(n$2), x, k):
%p A360742 seq(seq(T(n, k), k=0..n), n=0..12);
%t A360742 h[n_, i_] := h[n, i] = Expand[If[n == 0, 1, If[i < 1, 0, h[n, i - 1] + x*h[n - i, Min[n - i, i]]]]];
%t A360742 g[n_, i_, j_] := g[n, i, j] = Expand[If[j == 0, 1, If[i < 0, 0, Sum[       g[n, i - 1, j - k]*x^(i*k)*Binomial[Coefficient[h[n, n], x, i], k], {k, 0, j}]]]];
%t A360742 b[n_, i_] := b[n, i] = Expand[If[n == 0, 1, If[i < 1, 0, Sum[b[n - i*j, i - 1]*g[i, i, j], {j, 0, n/i}]]]];
%t A360742 T[n_, k_] := Coefficient[b[n, n], x, k];
%t A360742 Table[Table[T[n, k], {k, 0, n}], {n, 0, 12}] // Flatten (* _Jean-François Alcover_, Nov 15 2023, after _Alois P. Heinz_ *)
%Y A360742 Columns k=0-2 give: A000007, A057427, A001477(n-1) for n>=1.
%Y A360742 Main diagonal gives A000009.
%Y A360742 T(n+2,n+1) gives A036469.
%Y A360742 Row sums give A261049.
%Y A360742 T(2n,n) gives A360714.
%Y A360742 Cf. A000041, A055884 (similar triangle for multisets), A330463.
%K A360742 nonn,tabl
%O A360742 0,9
%A A360742 _Alois P. Heinz_, Feb 18 2023