combination_calc
Calculate C(n,r) to determine how many unordered selections of r items can be made from n total items.
Instructions
Calculate the number of combinations C(n,r) - unordered selections.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"n": "<n>",
"r": "<r>"
},
"name": "combination_calc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes | Total number of items. | |
| r | Yes | Number of items to choose. |