Permutations
permutationsCalculate the number of ordered arrangements of k items from a set of n without repetition. Useful for combinatorial count of ordered choices.
Instructions
Calculate the number of ways to choose k items from n items without repetition and with order.
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>"
},
"name": "permutations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | The optional number of items to choose. | |
| n | Yes | The number of items to choose from. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |