Read · 1 min
A quadratic congruence is of the form
Read · 1 min
A quadratic congruence is of the form
Contest problems often need this idea together with one or two others. That is where understanding goes deeper than memory. These are real problems from the AMC 12 and AIME, the national math competitions for middle and high school students, each with a worked solution on LIVE by Po-Shen Loh.
Read · 1 min
A number which has a square root is called a
How is this useful in problem solving? Well try finding quadratic residues in for example. The quadratic residues would be
Thus the quadratic residues mod 4 are and .
If that doesn't answer how quadratic residues can be useful let me give you an example from the jmo. This is usajmo 2011 #1:
Find, with proof, all integers such that is a perfect square.
Notice that
Let's take a look at quadratic residues mod 3.
Thus in order for to be a square integer it must be or
Thus . If is even, then which is impossible.
Thus is odd.
We are inspired to try and it would be convenient if . The only time this is not the case is when . When we check this we see that and is thus a solution.
Now we assume that
We take and see that
From before we deduced that must be odd. Thus
But recall how the quadratic residues mod 4 are and . Thus, it is impossible for a square number to be meaning that for values cannot be a square integer.
Thus, the only solution is .
Interactive · 1 question
We say is a quadratic residue modulo if and only if there exists such that . In other words, is a perfect square modulo .
We say is a quadratic non-residue if it is not a quadratic residue. (Why not just non quadratic residue?)
Let's see what we can do with this definition.
Suppose that we have a quadratic . By CRT, it suffices to solve it modulo its prime factors to their respective exponents. However, let's first look at it modulo a prime.
Let's suppose that is an odd prime, for convenience. If was , then there would only be two cases to check.
We can then proceed in a similar fashion to how we would in the real numbers. We have Since (otherwise ), multiply by to get,
Now what would we do? (Think about how we would do it in the real numbers.)
Yep, we can complete the square to get, Thus, exists if and only if is a quadratic residue. Now suppose that we have gotten past that point and we know . We'll come back to this step later. Then, we have Note that this is valid because and are invertible mod . was chosen to be odd, and if wasn't invertible, then , so would be , which is not true. This is just like the quadratic formula in the real numbers! The only problem is that sometimes, is a quadratic nonresidue. This is analogous to the situation when is negative in the real numbers, so the quadratic is not solvable.
To find out when it is solvable, see here.