Pdi Count
pdi_countHow many integers from 0 through n equal the sum of their digits each raised to k. For k=3, through 1 there are 2 and through 407 there are 6. For k=5, through 4150 there are 3 and through 4151 there are 4. n runs from 0 to 20000 and k runs from 1 to 10. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/pdi-count
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_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | Yes | ||
| n | Yes |