Combinatorica`
Combinatorica`
Compositions
Compositions[n,k]
gives a list of all compositions of integer n into k parts.
更多信息和选项
- 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.