Combinatorica`
Combinatorica`
NumberOfCompositions
NumberOfCompositions[n,k]
counts the number of distinct compositions of integer into parts.
Details and Options
- To use NumberOfCompositions, you first need to load the Combinatorica Package using Needs["Combinatorica`"].