Try this
- Click the row: only and are filled in. Can a number that leaves remainder when divided by be a square?
- Click and . Mod , only three of the eight remainders are filled in. How much does that rule out at a stroke?
- Click : this row is about the last digit of a square. Which digits can never be the last digit of a square?
- Look at the small table “ and ” on the right. Is the second row symmetric? Why do and have squares with the same remainder?
- Switch to “Cubes” and look at and ; switch to “4th powers” and look at .
The squares of integers, , are called perfect squares. To find their remainders mod , you only need to work out once each (the method from the residue systems stop). The three most useful rows are worth learning by heart:
Predict first
How many possible remainders does the square of an odd number leave when divided by ?
Just one: remainder . In the small table for the row, the squares of are all .
You can also work it out directly: . and are neighboring integers, so one of them is even, and is a multiple of .
Why
The biggest use of a remainder table is proving that an equation has no integer solutions. There is only one hard part: choosing the modulus.
Does x² + y² = 2023 have integer solutions?
Step 1 / 5- Try mod 3 first
Squares leave or mod , so the sum of two squares can leave : anything at all. The right side, , leaves . No contradiction.
Two more tools
The barcode. By the Fundamental Theorem of Arithmetic, is a perfect square every exponent in its prime factorization is even. So the number of divisors of a square, , is odd, and only squares have this property.
Squeezing. There are no squares strictly between two neighboring squares and . So if you can show that a number lies strictly between them, it is not a square. For example, when ,
so is never a perfect square.
Remove one condition
Break it
Counterexample lab: remove one condition
Conclusion: if is a perfect square, then and are each perfect squares ← still true?
and are coprime: each prime's bar appears on one side only. Every exponent of is even, so every exponent of and of must be even too.
and are not coprime. Look at the two bars under the prime .
The bars have heights and , both odd, yet they add up to the even number : is a square, but neither nor is. Now use and to build one of your own: make a square while neither nor is one.
Practice
Which digits can never be the last digit of a perfect square? List them all.
How many perfect squares are there in the sequence ?
Find the positive integer for which is a perfect square.
Prove that a positive integer that leaves remainder when divided by cannot be written as a sum of three squares of integers.