Lecture 11 - 2025-02-24

This commit is contained in:
2025-02-24 10:58:34 -05:00
parent 07b2195ece
commit 0e0d2f1fab
2 changed files with 252 additions and 26 deletions
+252 -26
View File
@@ -413,39 +413,265 @@
That is, at most \( \deg(f) \) elements \( a \in \Z/p\Z \) satisfy \( f(a) \equiv 0 \pmod{p} \).
\end{remark}
% \begin{proof}
% Let \( m_p(d) \) be the number of elements of degree \( d \) in \( \big( U( \Z/p\Z ), \cdot \big) \).
% WTS \( m_p(p - 1) \neq 0 \), because \( U(\Z/p\Z) \) has order \( p - 1 \).
% We observe that for any \( d \mid p - 1 \), \( m_p(d) \leq \varphi{d} \).
% Indeed, we have two options,
% \begin{enumerate}
% \item There are no elements of order \( d \), and so \( m_p(d) = 0 \).
% \item There is at least one element of order \( d \).
% That is, \( x^d \equiv \pmod{p} \) has at least one solution.
% However, \( x^d \equiv 1 \pmod{p} \) has at most \( d \) solutions by the remark above.
% This means that there is at most one copy of cyclic group of order \( d \) in \( U(\Z/p\Z) \). Otherwise, \( \exists g_1, g_2 \in U(\Z/p\Z) \) of order \( d \) and \( g_1, g_2 \) cannot generate each other, which means element of order \( d \) is at least \( d + 1 \), contradicting with the remark above.
% We could further constraint \[
% m_p(d) \in \{ 0, \varphi(d) \}
% \]
% Now, we have \begin{align*}
% \left| U(\Z/p\Z) \right|
% &
% = p - 1
% \\
% & = \sum_{d \mid p - 1} m_p(d) \leq \sum_{d \mid p - 1} \varphi(d) = p - 1
% \end{align*}
% This could only happen if \( m_p(d) = \varphi(d) \) for all \( d \mid p - 1 \).
% In particular, \( m_p(p - 1) = \varphi(p - 1) \geq 1 \neq 0 \).
% \end{enumerate}
% \end{proof}
\begin{proof}[Proof (start).]
Size of \( U(\Z / p\Z) \) is \( \phi(p^n) = (p - 1)p^{n-1} \).
WTS \( \exists g \in U(\Z/p\Z) \) of order \( (p - 1)p^{n-1} \iff \begin{cases}
g^{q p^{n-1}} \not\equiv 1 \pmod{p^n} & \text{for every} q \mid p - 1 \\
g^{(p-1) p^{n-2}} \not\equiv 1 \pmod{p^n}
\end{cases} \)
\end{proof}
\begin{remark}
Suppose \( h \in \Z \) is a generator of \( U(\Z / p\Z) \).
Now consider \( h \) in \( U( \Z / p^2 \Z) \) and suppose it is not a generator.
Then,
\begin{itemize}
\item \( h^{(p-1) p} \equiv 1 \pmod{p^2} \)
\item Maybe \( h^{p-1} \equiv 1 \pmod{p^2} \)
\end{itemize}
Can \( h^{qp} \equiv 1 \pmod{p^2} \) for some \( q \mid p - 1 \)?
No. If \( h^{qp} \equiv 1 \pmod{p^2} \), then \( h^{qp} \equiv 1 \pmod{p} \) and \( h^{q} \equiv 1 \pmod{p} \) which means \( h \) is not a generator of \( U(\Z / p\Z) \).
Conclusion: \( h \) fails to be a generator modulo \( p^2 \) if and only if \( h^{p-1} \equiv 1 \pmod{p^2} \).
\end{remark}
\begin{proof}[Proof (for \(n = 2\)).]
Suppose the above happens. Consider \( h + p \) as a different lift of \( h \) in \( U(\Z / p^2 \Z) \).
\begin{align*}
(h + p)^{p-1} & = h^{p-1} + h^{p-2} p(p - 1) + h^{p-3}p^2 (p - 1) + \cdots
\\
& = h^{p-1} + h^{p-2} p(p - 1) \pmod{p^2}
\\
& = 1 + p \left[ h^{p-2}(p-1) \right] \pmod{p^2}
\\
& \not\equiv 1 \pmod{p^2}
& h^{p-2}(p-1) \text{ coprime to } p
\end{align*}
So \( h + p \) generates \( U(\Z / p^2 \Z) \).
\end{proof}
\begin{lemma}
Suppose \( h \in \Z \) generates \( U(\Z / p\Z) \).
Then, \( h \) can fail to generate \( U(\Z / p^n \Z) \) if and only if \( h^{p-1} p^{n-2} \equiv 1 \pmod{p^n} \).
\end{lemma}
\begin{proof}
Let \( m_p(d) \) be the number of elements of degree \( d \) in \( \big( U( \Z/p\Z ), \cdot \big) \).
Proof of lemma.
WTS \( m_p(p - 1) \neq 0 \), because \( U(\Z/p\Z) \) has order \( p - 1 \).
\begin{itemize}
\item One direction is clear.
We observe that for any \( d \mid p - 1 \), \( m_p(d) \leq \varphi{d} \).
\item In the other direction, suppose \( h^{qp^{n-1}} \pmod{p^n} \) for \( q \) a proper divisor of \( p - 1 \).
\( (h^1)^{p^{n-1}} \equiv 1 \pmod{p^n} \) so \( h^q \equiv 1 \pmod{p^n} \) which means \( h \) is not a generator of \( U(\Z / p \Z) \), a contradiction.
\end{itemize}
\end{proof}
\begin{proof}[Proof (theorem, contd).]
Pick \( h \) to be a lift of a generator of \( \Z / p\Z \).
Now, there are two cases:
Indeed, we have two options,
\begin{enumerate}
\item There are no elements of order \( d \), and so \( m_p(d) = 0 \).
\item \( h^{(p-1)p^{n-2}} \not\equiv 1 \pmod{p^n} \implies g = h \) by lemma will generate \( U(\Z / p^n \Z) \).
\item \( h^{(p-1)p^{n-2}} \equiv 1 \pmod{p^n} \)
\item There is at least one element of order \( d \).
Take \( g = h + p \).
That is, \( x^d \equiv \pmod{p} \) has at least one solution.
However, \( x^d \equiv 1 \pmod{p} \) has at most \( d \) solutions by the remark above.
This means that there is at most one copy of cyclic group of order \( d \) in \( U(\Z/p\Z) \). Otherwise, \( \exists g_1, g_2 \in U(\Z/p\Z) \) of order \( d \) and \( g_1, g_2 \) cannot generate each other, which means element of order \( d \) is at least \( d + 1 \), contradicting with the remark above.
We could further constraint \[
m_p(d) \in \{ 0, \varphi(d) \}
\]
Now, we have \begin{align*}
\left| U(\Z/p\Z) \right|
&
= p - 1
\\
& = \sum_{d \mid p - 1} m_p(d) \leq \sum_{d \mid p - 1} \varphi(d) = p - 1
Check: \begin{align*}
(h+p)^{(p-1)p^{n-2}}
& = h^{(p-1)p^{n-2}} + p h^u (p-1) p^{n-2} + p^2 h^{u-1} {{(p-1) p^{n-1}}\choose{2}} + \cdots
\end{align*}
This could only happen if \( m_p(d) = \varphi(d) \) for all \( d \mid p - 1 \).
In particular, \( m_p(p - 1) = \varphi(p - 1) \geq 1 \neq 0 \).
which is in the form of \( 1 + p^{n-1} ( h^u (p-1) ) \) which is not congruent to \( 1 \pmod{p^n} \).
\end{enumerate}
\end{proof}
\end{proof}
\begin{lemma}
Suppose \( p \geq 3 \), \( x = 1 + p^{n-2} y \) for \( y \) coprime to \( p \).
Then, \( x^p = 1 + p^{n-1} z \) for \( z \) coprime to \( p \).
\end{lemma}
\begin{proof}
\( x = (h + p)^{(p-1)p^{n-3}} \) and work by induction.
\begin{itemize}
\item \( h^{p-1} \equiv 1 \pmod{p} \) so \( (h + p)^{p-1} = 1 + py \pmod{p^2} \).
\item \( (h + p)^{(p-1)p} = 1 + pz \pmod{p^2} \) for \( z \) coprime to \( p \).
\end{itemize}
\( x^p = ( 1 + p^{n-2} y )^p = 1 + p \cdot p^{n-2} y + {p \choose 2} (p^{n-2} y)^2 + \cdot = 1 + p^{n-1}y + p^n w = 1 + p^{n-1}(y+pw) \).
\end{proof}
\begin{proof}[Proof (theorem, for \(p = 2\)).]
If \( h \) generates \( \Z / 4\Z \) or \( Z / p\Z \), \( p \) odd, then \( h \) (or maybe \(h + p \)) generate \( \Z / p^n \Z \).
We prove this by computing the order of \( h \) (or \(h + p\)).
Look at \( p = 2 \) in more detail.
\( U(\Z/8\Z) =\{1, 3, 5, 7\} \), \( x_2 = 1 \pmod 8\), so \( U(\Z/8\Z) \cong \Z/2\Z \times \Z/2\Z \).
This is also true for \( U( \Z / 16\Z ) \cong \Z/2\Z \times \Z/4\Z = \langle \pm 1 \rangle \times \langle 3 \rangle \).
\end{proof}
Correlation of proof: If \( <x> = U(\Z p^n \Z) \), then \( <x> = U(\Z p^{n-1} \Z) \), \( p \) odd, \(n \geq 3\)
\section{Quadratic Residues}
Suppose \( p \) odd. then \( U(\Z / p\Z) \) is cyclic of order \( p - 1 \), which is even.
Them, an element in \( U(\Z/p\Z) \) is a square makes sense.
Any \( x \) in \( U(\Z/p\Z) \) is of the form \( g^k \), \( k \pmod{p-1} \), then \( k \pmod{2} \) makes sense.
Caution: \( (\Z/3\Z, +) \) asking if an element is a multiple of \( 2 \) is meaningless.
\begin{example}
\( x^2 + x + 1 \equiv 0 \pmod{11} \iff (x + 1/2)^2 - \frac{1}{4} + 1 \equiv 0 \pmod{11} \)
This means \( ( 1 + 1/2)^2 = -\frac{3}{4} \pmod 11 \).
\end{example}
\begin{definition}[Quadratic Residue]\index{Quadratic Residue}
A \term{quadratic residue} modulo \( p \) is just another term for a square in \( U(\Z/p\Z) \). That is, \[
QR(p) = \{ x \in U(\Z/p\Z) | \exists y \in U(\Z/p\Z) \text{ such that } y^2 \equiv x \pmod{p} \}
\]
\end{definition}
\begin{lemma}
For \( p \) odd, \( | QR(p) | = \frac{p-1}{2} \).
\end{lemma}
\begin{proof}
\( x^2 \equiv y^2 \pmod{p} \implies (x-y)(x+y) \equiv 0 \pmod{p} \implies x \equiv \pm y \pmod{p} \).
The map \( U(\Z/p\Z)^{x \to x^2} \to QR \) is 2 to 1.
\end{proof}
\begin{definition}[Legendre Symbol]\index{Legendre Symbol}
The \term{Legendre symbol} is defined as \[
\left( \frac{a}{p} \right) = \begin{cases}
-1 & \text{if } a \not\in QR(p) \\
0 & \text{if } a \equiv 0 \pmod{p} \\
1 & \text{if } a \in QR(p)
\end{cases}
\]
\end{definition}
\begin{lemma}
\( \left( \frac{a}{p} \right) \equiv a^{\frac{p-1}{2}} \pmod{p} \).
\end{lemma}
\begin{proof}
We consider three cases.
\begin{itemize}
\item \( a \equiv 0 \pmod{p} \) is trivial.
\item \( a \in QR(p) \), so \( a = g^{2k} \), \( kj \in \N \).
Thus, \( a^{\frac{p-1}{2}} \equiv g^{k(p-1)} \equiv 1 \pmod{p} = \left( \frac{a}{p} \right) \).
\item \( a \notin QR(p) \), so \( a = g^{2k+1} \), \( k \in \N \).
Thus, \( a^{\frac{p-1}{2}} \equiv g^{(2k+1)(\frac{p-1}{2})} \)
\( \frac{(2k+1)(p-1)}{2} \) is not a multiple of \( p - 1 \), so \( a^{\frac{p-1}{2}} \not\equiv 1 \pmod{p} \).
But it's square equiv 1 modulo \( p \).
Thus, \( a^{\frac{p+1}{2}} \equiv -1 \pmod{p} = \left( \frac{a}{p} \right) \).
\end{itemize}
\end{proof}
\begin{lemma}
\( \left( \frac{ab}{p} \right) = \left( \frac{a}{p} \right) \left( \frac{b}{p} \right) \).
\end{lemma}
\begin{proof}
By the previous lemma, \[
\left( \frac{ab}{p} \right) = (ab)^{\frac{p-1}{2}} \pmod{p} \equiv a^{\frac{p-1}{2}} b^{\frac{p-1}{2}} \pmod{p} = \left( \frac{a}{p} \right) \left( \frac{b}{p} \right)
\]
\end{proof}
\begin{table}[H]
\centering
\begin{tabular}{c|c|c}
& QR & QNR \\
\hline
QR & QR & QNR \\
\hline
QNR & QNR & QR
\end{tabular}
\end{table}
For the last case (QNR, QNR), we have \( x = g^{2k+1}, y=g^{2j+1} \), so \( xy = g^{2(k+j)+2} \) is a square.
\begin{theorem}[Quadratic Reciprocity]
For \( p, q \) odd primes, \[
\left( \frac{p}{q} \right) \left( \frac{q}{p} \right) = (-1)^{\frac{p-1}{2} \frac{q-1}{2}}
\]
\end{theorem}
\begin{example}
Suppose for simplicity \( p, q \equiv 1 \pmod{4} \). Then \( \frac{(p-1)(q-1)}{4} \) is even.
By the theorem, \( \left( \frac{p}{q} \right) \left( \frac{q}{p} \right) = 1 \).
That is, \( \left( \frac{p}{q} \right) = \left( \frac{q}{p} \right) \).
That is, \( p \in QR(q) \iff q \in QR(p) \).
\end{example}
\begin{remark}
A supplement to the theorem states that \[
-1 \in QR(p) \iff p \equiv 1 \pmod{4}
\]
\end{remark}