primitive_root
Find the smallest primitive root modulo n to generate all numbers in a cyclic group for modular arithmetic applications.
Instructions
Find the smallest primitive root modulo n. (Domain: arithmetic, Category: modular_arithmetic)
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": "primitive_root"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |