Combinatorica`
Combinatorica`

Compositions

Compositions[n,k]

gives a list of all compositions of integer n into k parts.

Details

See Also

NextComposition  RandomComposition

Tutorials