kaprekar_constant
Calculate the Kaprekar constant for any number of digits to find the fixed point in Kaprekar's routine, where rearranging digits and subtracting yields the same result.
Instructions
Get the Kaprekar constant for a given number of digits. (Domain: arithmetic, Category: iterative_sequences)
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": {
"digits": "<digits>"
},
"name": "kaprekar_constant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| digits | Yes |