is_quadratic_residue
Determines if an integer is a quadratic residue modulo another integer, solving modular arithmetic problems in number theory.
Instructions
Check if a is a quadratic residue 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": {
"a": "<a>",
"n": "<n>"
},
"name": "is_quadratic_residue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| n | Yes |