Combinatorica`
Combinatorica`
Compositions
Compositions[n,k]
gives a list of all compositions of integer n into k parts.
Details and Options
- To use Compositions, you first need to load the Combinatorica Package using Needs["Combinatorica`"].
Compositions[n,k]
gives a list of all compositions of integer n into k parts.