Alternating Next
alternating_nextThe smallest m at least n, and at most 12, whose alternating factorial is prime. 1 gives 3, 3 stays 3, and 9 gives 10. If none remains through 12, the input is rejected. n runs from 1 to 12. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/alternating-next
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": "alternating_next"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |