jacobi
Compute the Jacobi symbol (a/n) for integer a and odd positive integer n. Used in number theory for primality testing and factorization.
Instructions
Compute the Jacobi symbol (a/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": {
"a": "<a>",
"n": "<n>"
},
"name": "jacobi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | Integer. | |
| n | Yes | Odd positive integer. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |