You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A weak composition of a non-negative integer $n$ is a sequence $\lambda_1,\dots,\lambda_k$ of non-negative integers $\lambda_i$ such that $n = \lambda_1 + \dots + \lambda_k$.
A composition of $n$ is a weak composition consisting of positive integers.
The $\lambda_i$ are called the parts of the (weak) composition.
Note that an integer $n$ has infinitely many weak compositions as one may always append zeros to the end of a given weak composition.
Without restrictions on the number of parts, we can hence only generate compositions, but not weak compositions.