permutations
Calculate the number of ordered permutations (nPr) for given total items and selected count. Returns exact decimal value.
Instructions
Calculates ordered selections nPr exactly; returns a decimal string
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": {
"total": "<total>",
"selected": "<selected>"
},
"name": "permutations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | Total number of items, n | |
| selected | Yes | Number of ordered selections, r |