Pdi
pdiWhether n equals the sum of its digits each raised to k. 153 with k=3, 1634 with k=4, and 4150 with k=5 do. 4150 with k=4 does not, and neither does 2 with k=3. n runs from 0 to 999999999999999 and k runs from 1 to 15. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/pdi
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>",
"k": "<k>"
},
"name": "pdi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | Yes | ||
| n | Yes |