Diophantine Equation Calculator
Solve linear Diophantine equations of the form ax + by = c. Find integer solutions using the Extended Euclidean Algorithm.
Inputs
Results
Solution Exists
Yes
x₀ (particular)2
y₀ (particular)-1
GCD(a, b)1
General Solutionx = 2 + 5t, y = -1 - 3t
How to Use This Calculator
- Enter a, b, and c.
- Review the Solution Exists result.
- Use x₀ (particular) and y₀ (particular) to inform your decision.
- Use the chart to visualize the results and explore different scenarios by adjusting inputs.
What each input means
- a
- Coefficient a in ax + by = c
- b
- Coefficient b in ax + by = c
- c
- Right-hand side constant c in ax + by = c
How this is calculated
Worked example, using the default values
- Identify Input Parametersa = 3, b = 5, c = 1 = 3 input(s) provided
- Calculate Solution ExistsYes = Yes
- Calculate x₀2 = 2
- Calculate y₀-1 = -1
Engine last updated . Checked against 3 independently-derived tests — how we verify calculators.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Number Theory
Chinese Remainder Theorem Calculator
Solve systems of congruences using the Chinese Remainder Theorem. Find x such that x ≡ r1 (mod m1) and x ≡ r2 (mod m2).
Number TheoryModular Arithmetic Calculator
Perform modular addition, multiplication, and exponentiation. Calculate (a op b) mod m with equivalence classes.
Number TheoryContinued Fraction Calculator
Convert a fraction to its continued fraction representation. Shows coefficients, convergents, and approximation error.
More in Math & Statistics.