Collatz Steps
collatz_stepsHow many Collatz steps it takes to reach 1. 1 takes 0, 2 takes 1, 3 takes 7, 6 takes 8, 7 takes 16, and 27 takes 111. n runs from 1 to 100000. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/collatz-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": "collatz_steps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |