Mod Inverse
mod_inverseThe inverse of a modulo m, the residue from 0 to m-1 with a*inverse = 1 mod m. The inverse of 3 mod 7 is 5, and the inverse of -1 mod 7 is 6. There is no inverse when a and m share a factor. m runs from 2 to 1000000000000. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/mod-inverse
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": {
"a": "<a>",
"m": "<m>"
},
"name": "mod_inverse"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| m | Yes |