Chapter
Diophantine Equations
Integer solutions, linear Diophantine equations, factorisation, modular obstructions, and positivity constraints.
Theory
1. What Is a Diophantine Equation?
A Diophantine equation is an equation where the required solutions are integers, or sometimes positive integers. For example,
\[ 3x+5y=17 \]
is not just an equation in real numbers. In number theory, we ask for integer pairs \((x,y)\).
2. Linear Diophantine Equations
The equation
\[ ax+by=c \]
has integer solutions if and only if
\[ \gcd(a,b)\mid c. \]
This condition is necessary because every common divisor of \(a\) and \(b\) divides \(ax+by\). It is also sufficient because the Euclidean algorithm can write \(\gcd(a,b)\) as a linear combination of \(a\) and \(b\).
3. General Solutions
If \((x_0,y_0)\) is one solution of \(ax+by=c\), and \(g=\gcd(a,b)\), then all integer solutions are
\[ x=x_0+\frac{b}{g}t,\qquad y=y_0-\frac{a}{g}t, \]
where \(t\) is an integer.
4. Factorisation Method
Many Diophantine equations become easier after factorisation:
\[ xy+x+y=11 \]
can be rewritten as
\[ (x+1)(y+1)=12. \]
Then integer factors of \(12\) give the solutions.
5. Modular Obstructions
Sometimes an equation has no integer solutions because of remainders. For example, \(x^2=3y+2\) has no solution if \(x^2\) cannot be congruent to \(2\pmod3\). Modular arithmetic can prove impossibility quickly.
6. Nonnegative and Positive Solutions
Olympiad problems often ask for positive or nonnegative solutions. After finding a parametric form, the inequalities restrict the parameter.
Examples
Example 1. Integer Solution Check
This is the first obstruction: the GCD must divide the constant.
Example 2. One Bezout Solution
Connect directly to the Euclidean algorithm from Module 2.
Example 3. All Linear Solutions
Stress that the parameter moves along the line without changing the value.
Example 4. A Factor Pair Equation
Factor-pair problems train completeness.
Example 5. Complete the Product
This is a central olympiad factorisation trick.
Example 6. Difference of Squares
Watch for missing negative factor pairs.
Example 7. Modulo Obstruction
This problem links Module 4 to Diophantine equations.
Example 8. A Product Plus Sum
Students may need help choosing the shifted factors.
Problems
Problems
Ladders