Exercise 622Number theory › Diophantine equationsM1Added 4 Nov 2026
x² − y² = 2024
#Diophantine equations#factoring#parity#divisors
Statement
Find all integer solutions of .
Hint
Factor . What can you say about the parities of and ?
Show solutionHide solution
Solution
Idea. A product of two integers with prescribed sum parity: enumerate factor pairs.
Parity. and have the same parity. Their product is even, so both factors are even. Write , with . Then , .
Positive factor pairs of . Divisors: . With and :
Non-negative solutions .
All integer solutions. Changing the signs of and/or gives solutions: , , , .
Check. ✓.
Remark. A number is a difference of two squares iff ; works.
Lesson. Factor the equation into a product of two integers, then enumerate divisors using parity and size constraints.