Hofstadter
hofstadterHofstadter G. G(0) is 0, G(1) and G(2) are 1, G(5) is 3, and G(10) is 6. The rule is G(n) = n - G(G(n-1)). n runs from 0 to 5000. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/hofstadter
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": "hofstadter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |