Combinatorica`
Combinatorica`

Compositions

Compositions[n,k]

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

Details and Options