znorder
Computes the multiplicative order of x modulo n, the smallest positive k with x^k ≡ 1 (mod n), for coprime x and n.
Instructions
Compute the multiplicative order of x modulo n.
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": {
"x": "<x>",
"n": "<n>"
},
"name": "znorder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes | Positive integer. | |
| x | Yes | Integer coprime to n. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |