Collatz Odd
collatz_oddHow many odd terms appear before the Collatz path reaches 1. The final 1 is not counted. 1 and 2 give 0, 3 and 6 give 2, and 7 gives 5. 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-odd
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_odd"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |