In one sentence
If two integers are equal, they leave the same remainder when divided by any number .
Use it the other way round: if you can find an such that the left side, whatever values it takes, can never leave the right side’s remainder, then the equation has no integer solutions. Infinitely many possibilities, all checked with one small table of remainders.
There is only one hard part: which to choose. A few common “wanted posters”:
- Squares: mod they leave only ; mod only ; mod only .
- Cubes: mod they leave only ; mod only .
- Fourth powers: mod they leave only ; mod only .
Predict first
How many different remainders can a perfect square leave on division by ?
The square of an even number, , leaves . The square of an odd number, , leaves . Those are the only two.
So a number that leaves or on division by is never a perfect square. Every stop below uses facts like this.
Stop 1 · Congruences (Vol. 6)
You do not need to memorize remainder tables: just make one on the spot.
Example: is there a perfect square among 11, 111, 1111, …?
Step 1 / 4- Too big: look only at remainders
These numbers keep growing, so you cannot take square roots one by one. Ask a different question: what do they leave on division by ?
Stop 2 · Residue systems (Vol. 6)
For squares, look mod or mod . What about cubes? Try them one at a time.
Example: does x³ + y³ = 2020 have integer solutions?
Step 1 / 5- Try mod 2 first
Cubing does not change parity: can leave or . The left side can make any remainder, so there is no contradiction.
Why and of all numbers? No need to memorize it. Open the power table in the “Modular Arithmetic Lab”: try a few moduli, see which one gives the fewest remainders in the column, and choose that one.
Stop 3 · Perfect squares (Vol. 6)
The coefficient itself is often the best modulus.
The sum of the squares of three consecutive integers is
Can this be a perfect square? Setting it equal to , the question is whether has integer solutions.
Example: does m² − 3n² = 2 have integer solutions?
Step 1 / 4- Try mod 4 out of habit
Mod , the old friend of squares: the left side can leave , and the right side leaves . They match, so no contradiction. Careful: this does not mean there is a solution.
Stop 4 · Diophantine equations (Vol. 6)
When both coefficients stand out, try each of them.
Example: does 15x² − 7y² = 9 have integer solutions?
Step 1 / 5- Mod 7: get rid of 7y²
Divide by : vanishes and is congruent to . The right side, , leaves . And leaves exactly : no contradiction.
A good order for choosing a modulus: first try the coefficients (to make a term vanish), then the old friends of the exponent (for squares try ; for cubes ; for fourth powers ).
Practice
How many different remainders can a perfect square leave on division by ?
The equation has no integer solutions. Of the four moduli , only one gives a contradiction. Which one?
How many different remainders can a fourth power leave on division by ? Once you know, use it to show that has no integer solutions.