count_solutions_diophantine
Count integer solutions to linear Diophantine equations within specified bounds. Use this tool to determine how many integer pairs (x,y) satisfy ax + by = c for given ranges.
Instructions
Count integer solutions to ax + by = c within given bounds. (Domain: arithmetic, Category: diophantine_equations)
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>",
"b": "<b>",
"c": "<c>",
"x_min": "<x_min>",
"x_max": "<x_max>",
"y_min": "<y_min>",
"y_max": "<y_max>"
},
"name": "count_solutions_diophantine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes | ||
| c | Yes | ||
| x_min | Yes | ||
| x_max | Yes | ||
| y_min | Yes | ||
| y_max | Yes |