Kaprekar Steps
kaprekar_stepsHow many steps the four-digit Kaprekar routine takes to reach 6174. 6174 takes 0, 3524 takes 3, 5 takes 6, and 14 takes 7. A repdigit is rejected. n runs from 0 to 9999. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/kaprekar-steps
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": "kaprekar_steps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |