OFFSET
0,77
COMMENTS
The partial sums of a sequence (a, b, c, ...) are (a, a+b, a+b+c, ...).
EXAMPLE
Triangle begins:
1
1
1 1
1 0 1 1
1 0 1 1 0 1 1
1 0 0 1 1 0 1 1 0 1 1
1 0 0 1 1 1 1 0 1 1 0 1 1 0 1 1
1 0 0 0 1 1 1 0 1 1 1 1 1 0 1 1 0 1 1 0 1 1
1 0 0 0 1 1 1 1 0 1 1 1 2 1 0 1 1 1 1 1 0 1 1 0 1 1 0 1 1
For example, the T(15,59) = 5 partitions are: (8,2,2,2,1), (7,3,3,1,1), (6,5,2,1,1), (4,3,2,2,2,2), (3,3,3,3,2,1).
MATHEMATICA
Table[Length[Select[IntegerPartitions[n], Total[Accumulate[#]]==k&]], {n, 0, 8}, {k, n, n*(n+1)/2}]
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Gus Wiseman, Dec 31 2022
STATUS
approved