Combinatorica`
Combinatorica`

NumberOfCompositions

NumberOfCompositions[n,k]

counts the number of distinct compositions of integer n into k parts.

Details and Options