combination
combinationCalculate the number of ways to choose r items from n items without regard to order using the combination formula C(n,r).
Instructions
计算从n个元素中选择r个元素的组合数 C(n,r)
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes | ||
| r | Yes |