Exercise 1486Number theory › Diophantine equationsL1Added 2 Nov 2026
Solving $ax+by=c$
#Diophantine equation#Bézout#solvability criterion
Statement
Let be integers with not both zero. Show that has integer solutions if and only if .
Hint
For the forward direction, note that divides every linear combination. For the converse, use Bézout.
Show solutionHide solution
Solution
Necessity. If and , then and , so .
Sufficiency. Suppose , say . By Bézout, there exist with . Multiplying by :
So is a solution.