jacobi_symbol
Compute the Jacobi symbol (a/n) for odd integers n to determine quadratic residue properties in modular arithmetic.
Instructions
Compute Jacobi symbol (a/n) for odd 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": "jacobi_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| n | Yes |