Section 17.1 More Legendre Symbols
Let's begin by calculating some more individual Legendre symbols. Now that we have seen a little bit of harder theory, we may appreciate some straightforward techniques that can work in lucky circumstances. (Seeing that these techniques are limited may also motivate our theoretical work in the remainder of the chapter.) First, recall we proved the following as Proposition 16.4.7:Proposition 17.1.1.
If
Example 17.1.2.
Let's try to compute
Since
Proposition 17.1.3.
Example 17.1.4.
What is
but we don't know this yet either. On the other hand,
Since
Example 17.1.5.
Before continuing, alternately try each of these strategies until you either get to a perfect square or a number we already know is (or isn't) a residue. (See also Exercise 17.7.3.)
Sage note 17.1.6. Check your work.
You can always check your work, if you wish, using Sage.
xxxxxxxxxx
Fact 17.1.7.
There are always consecutive quadratic residues for
Proof.
First, we know that \(1,4,9\) are all quadratic residues. Thus, if at least one of \(2,5,10\) was also a QR, then we could guarantee that there were always consecutive quadratic residues somewhere!
As it turns out, if \(p=5\) this doesn't work, because the only (nonzero) QRs are \(\pm 1\) for that prime. But if \(p=7\text{,}\) then \(a=1\) and \(a=9\equiv 2\) are consecutive.
Now suppose \(p>7\) is prime. Then at least one of \(2,5,10\) must be a QR, since one of these things must be true:
2 could be a QR
5 could be a QR
-
If 2 and 5 both aren't, then the computation
\begin{equation*} \left(\frac{10}{p}\right)=\left(\frac{2}{p}\right)\left(\frac{5}{p}\right)=(-1)(-1)=1 \end{equation*}means 10 is a QR!