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\).
What made things work out best in the end was a couple innovations of Lagrange's successor in Paris, Adrien-Marie Legendre. These were innovations Gauss made great use of.
One can approach this subject from many vantage points, including the historical one. However, we have the advantage of having developed the basics of groups and primitive roots, which will simplify much of our exposition.
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.
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\).
(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.)
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\) (recall Chapter 10).
So let's compare the primitive root's powers and the quadratic residues. Shouldn't be too hard … if you aren't computing this with Sage, just try it with an even smaller modulus, like seven.
Note the pattern! This exemplifies a major fact.
For odd prime modulus \(p\), the quadratic residues are precisely the even powers of a primitive root \(g\).
This fact will turn out to be a fantastically useful theoretical way to find \(Q_p\). It will show up in lots of proofy settings.