Alternating Mod
alternating_modThe alternating factorial a(n) modulo m. a(5) mod 10 is 1, a(6) mod 100 is 19, and a(4) mod 5 is 4. n runs from 1 to 18 and m runs from 1 to 1000000. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/alternating-mod
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>",
"m": "<m>"
},
"name": "alternating_mod"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| m | Yes | ||
| n | Yes |