Section 9.1 Legendre's Symbol
Definition 9.1.1.
Let \(p\) be an odd prime and let \(\gcd(a, p) = 1.\) The Legendre symbol \((a/p)\) is defined by
Example 9.1.2.
Again for \(n = 7,\) we have
and
Theorem 9.1.3.
Let \(p\) be an odd prime and let \(a\) and \(b\) be coprime to \(p.\) Then following properties hold:
If \(a\equiv b\pmod{p},\) then \((a/p) = (b/p).\)
\(\displaystyle (a^2/p) = 1.\)
\(\displaystyle (a/p)\equiv a^{(p-1)/2}\pmod{p}.\)
\(\displaystyle (ab/p)=(a/p)(b/p).\)
\(\displaystyle (1/p)\equiv 1 \hspace{2mm} \mathrm{and} \hspace{2mm} (-1/p)=(-1)^{(p-1)/2}.\)
Proof.
For \((a):\) If \(a \equiv b\pmod{p},\) then \(x^2\equiv a\pmod{p}\) and \(x^2\equiv b\pmod{p}\) have the same solution or both have no solution. In either case \((a/p) =(b/p).\)
For \((b):\) There is clearly a solution to \(x^2\equiv a^2\pmod{p};\) in fact, the integer \(a\) satisfies it. Thus \(a^2\) is a quadratic residue of \(p,\) and so \((a^2/p) = 1.\)
For \((c):\) This is just a restatement of the previous corollary.
For \((d):\) Using \((c),\) we have
If \((ab/p) \neq (a/p)(b/p),\) then since the Legendre symbol takes the values only \(\pm 1,\) we would have \(1\equiv -1\pmod{p},\) which implies that \(p = 2,\) a contradiction. Thus \((ab/p) = (a/p)(b/p).\)
For \((e):\) Note that \((1/p) = 1\) since \(1^2\equiv 1\pmod{p}\) and \(1\) is a quadratic residue of \(p.\) If we let \(a = -1\) in part \((c),\) then we have \((-1/p) =(-1)^{(p-1)/2)}\) which is the desired result.
Corollary 9.1.4.
If \(p\) is an odd prime, then
Example 9.1.5.
Is there a solution of the congruence \(x^2\equiv -46\pmod{17}?\)
We need only evaluate \((-46/17).\) Well
Since \(46\equiv 12\pmod{17}\) we have
Now
and so
so \(-46\) is not a quadratic residue of \(17,\) and so the congruence \(x^2\equiv -46\pmod{17}\) has no solution.
Theorem 9.1.6.
There are infinitely many primes of the form \(4k + 1.\)
Proof.
As is always the case, we suppose that there are only finitely many primes of the form \(4k + 1,\) say \(p_1, p_2,..., p_n\) and consider
Since \(N\) is odd, there is an odd prime \(p\) that divides \(N.\) So
which says that \((-1/p) = 1.\) Since
it must be the case, that \(p \equiv 1\pmod{4},\) or rather, \(p\) is of the form \(4k + 1\) and so \(p = p_i\) for some \(i.\) But
a contradiction. Thus there are infinitely many primes of the form \(4k +1.\)
Theorem 9.1.7.
If \(p\) is an odd prime, then
Proof.
Let \(r\) be a primitive root of \(p.\) Note that the powers \(r, r^2, r^3,...,r^{p-1}\) are just a permutation of \(1, 2, 3,..., p-1,\) since they are incongruent modulo \(p.\) So for any a between \(1\) and \(p-1,\) inclusive, we have that there is a unique \(k\) with \(1\leq k\leq p- 1,\) such that
Now by Euler's Criterion, we have
where \(r^{(p-1)/2} \equiv -1\pmod{p}\) by Euler's Criterion since \(r\) is a primitive root modulo \(p.\) Hence \((a/p) = (-1)^k\) since \((a/p)\) is either \(1\) or \(-1.\) Thus
since \(p-1\) is even.
Corollary 9.1.8.
Let \(p\) be an odd prime. Then the number of quadratic residues of \(p\) is equal to the number of quadratic nonresidues of \(p.\)
Corollary 9.1.9.
Let \(r\) be a primitive root of \(p,\) an odd prime. Then the quadratic residues of \(p\) are the even powers of \(r\) and the quadratic non-residues of \(p\) are the odd powers of \(r.\)
Proof.
Since \((a/p) \equiv (-1)^k\) in the above proof of the Theorem.
Example 9.1.10.
Recall that \(2\) is a primitive root of \(13.\) Thus the quadratic residues of \(13\) are
and the quadratic nonresidues are