Section16.4Send in the Groups
One can approach this subject from many vantage points. However, we have the advantage of having developed the basics of groups and primitive roots, which will simplify much of our exposition.
Subsection16.4.1Quadratic Residues form a group
Definition16.4.1
Consider the set of all non-zero quadratic residues modulo some prime \(p\). We call this the group of quadratic residues \(Q_p\).
This terminology suggests I had better have a proof in my pocket for the following theorem.
Theorem16.4.2
The set of non-zero quadratic residues \(Q_p\) modulo a prime \(p\) really is a group, and is even a subgroup of the group of units \(U_p\).Proof
We will proceed by showing the group axioms hold under multiplication. Since this is a subset of \(U_p\) essentially by definition, this will imply it is a subgroup of it as well.
- It is clear that \(1\in Q_p\), since \(1\equiv 1^2\). So there is an identity.
- Next, if \(a\) and \(b\) are both in \(Q_p\) (with \(a\equiv s^2\) and \(b\equiv t^2\)), then \(ab\) is also a quadratic residue (since \((st)^2\equiv s^2 t^2\equiv ab\)).
- All that remains is to check that this set has inverses under multiplication.
- Assume that \(a\equiv s^2\in Q_p\).
- Then note that \[\left(s^{-1}\right)^2 a\equiv \left(s^{-1}\right)^2 s^2\equiv \left(s\cdot s^{-1}\right)^2\equiv 1\]
- So by definition \[\left(s^{-1}\right)^2=a^{-1}\; ,\] which means that if \(a\in Q_p\) then \(a^{-1}\in Q_p\) as well.
(For those with some additional algebraic background, it turns out\(Q_p\) is in fact a quotient group of \(U_p\) as well, but we will not delve further into this here.)
Subsection16.4.2Quadratic Residues connect to primitive roots
You might be wondering how this piece of \(U_p\) connects to the most important thing we've seen so far about \(U_p\). Recall that \(U_p\) was cyclic, that it had a generator whose powers gave us all units modulo \(p\). We called such an element a primitive root of \(p\).
So let's compare the primitive root's powers and the quadratic residues. Shouldn't be too hard...
Note the pattern! This exemplifies a major fact.
Fact16.4.3
For odd prime modulus \(p\), the quadratic residues are precisely the even powers of a primitive root \(g\).Proof
- Certainly \(g^{2n}=\left(g^n\right)^2\), so the even powers of \(g\) are QR.
- But also note that if \(a\in Q_p\) and \(a=s^2\), that \(s\) and \(a\) are themselves still powers of \(g\) (by definition of \(g\)).
- So if \(s=g^n\) and \(a=g^m\) for some \(n,m\), then \[a=g^m\equiv g^{2n}\text{ mod }(p)\; ;\] so \[m\equiv 2n\text{ mod }(p-1)\; .\]
- This is only possible if \(m\) is even since \(p-1\) and \(2n\) are even.
This will turn out to be a fantastically useful theoretical way to find \(Q_p\). It will show up in lots of proofy settings.