combina
Combinations with repetition allowed.
Syntax
Section titled “Syntax”v = combina(number, number_chosen)Description
Section titled “Description”Returns the number of unordered selections of k from n when items may be selected more than once. Equals combin(n + k - 1, k).
Example
Section titled “Example”combina(4, 3) % 20See also
Section titled “See also”combin— Number of unordered selections (combinations) ofkfromn.