combinat[numbcomp] - the number of k-compositions of an integer
|
Calling Sequence
|
|
numbcomp(n, k)
|
|
Description
|
|
•
|
The numbcomp command counts the number of distinct ordered k-tuples of positive integers whose elements sum to n. For information on the composition command, which constructs k-compositions, see the combinat[composition] help page.
|
•
|
Note that for .
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
|
|
Download Help Document
Was this information helpful?