OFFSET
1,2
COMMENTS
A k-composition of n is a rectangular array of nonnegative integers with k rows, at least one nonzero entry in each column, and having the sum of all entries equal to n.
LINKS
John Tyler Rascoe, Antidiagonals n = 1..100, flattened
FORMULA
Column k has g.f.: -((1 - x)^k - 1)*(1 - x)^k/(((1 - x)^k - 1) + (1 - x)^k)^2.
EXAMPLE
Square array begins:
1, 2, 3, 4, 5, 6, ...
3, 11, 24, 42, 65, 93, ...
8, 52, 163, 372, 710, 1208, ...
20, 227, 1017, 3019, 7095, 14340, ...
48, 944, 6030, 23256, 67251, 161394, ...
...
A(2,2) = 11 counts the columns in the 2-compositions of 2:
[2] [0] [1] [1,0] [0,1] [0,0] [1,1]
[0], [2], [1], [0,1], [1,0], [1,1], [0,0].
PROG
CROSSREFS
KEYWORD
AUTHOR
John Tyler Rascoe, Apr 05 2025
STATUS
approved
