combs(N;K)
Returns the number of combinations of two given values.
Syntax
combs(N;K)
Input
Argument | Type | Description |
---|---|---|
N |
integer or decimal | The total number of elements in the set |
K |
integer or decimal | The number of elements in a subset |
Return Value
Returns a decimal number corresponding to the number of combinations of
N
things taken K
at a time.Note: The result is identical to
bincoeff(N;K)
.If N
or K
is N/A, the result is N/A.
Sample Usage
N |
K |
combs(N;K) |
---|---|---|
0 | 1 | NA |
3 | 2 | 3 |
6 | 3 | 20 |
7 | 4 | 35 |
8 | 8 | 1 |
NA | 4 | NA |
6 | NA | NA |