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.
FORMULA
a(n) = [x^n] -((1 - x)^n - 1)*(1 - x)^n/(((1 - x)^n - 1) + (1 - x)^n)^2.
PROG
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
John Tyler Rascoe, Apr 05 2025
STATUS
approved
