TAOCP 4.6.2 Exercise 31
**Exercise 4.
Section 4.6.2: Factorization of Polynomials
Exercise 31. [**] [HM30] Let $p$ be an odd prime and let $d \ge 1$. Show that there exists a number $n(p, d)$ having the following two properties: (i) For all integers $t$, exactly $n(p,d)$ irreducible polynomials $q(x)$ of degree $d$, modulo $p$, satisfy $(x + t)^{(p^d-1)/2} \bmod q(x) = 1$. (ii) For all integers $0 \le t_1 < t_2 < p$, exactly $n(p,d)$ polynomials $q(x)$ of degree $d$, modulo $p$, satisfy $(x + t_1)^{(p^d-1)/2} \bmod q(x) = (x + t_2)^{(p^d-1)/2} \bmod q(x)$.
Verified: yes
Solve time: 5m17s
Exercise 4.6.2.31 [**]
31. [HM30] Let $p$ be an odd prime and let $d \ge 1$. Show that there exists a number $n(p, d)$ having the following two properties: (i) For all integers $t$, exactly $n(p,d)$ irreducible polynomials $q(x)$ of degree $d$, modulo $p$, satisfy
$(x + t)^{(p^d-1)/2} \equiv 1 \pmod{q(x)}.$
(ii) For all integers $0 \le t_1 < t_2 < p$, exactly $n(p,d)$ polynomials $q(x)$ of degree $d$, modulo $p$, satisfy
$(x + t_1)^{(p^d-1)/2} \equiv (x + t_2)^{(p^d-1)/2} \pmod{q(x)}.$
Corrected Solution:
Let $\mathbb F_{p^d}$ denote the finite field of $p^d$ elements. Each irreducible polynomial $q(x)$ of degree $d$ over $\mathbb F_p$ corresponds to the minimal polynomial of an element $\alpha \in \mathbb F_{p^d}$ of degree $d$ over $\mathbb F_p$. Conversely, every element $\alpha \in \mathbb F_{p^d}$ of degree $d$ has a unique minimal polynomial $q(x)$ of degree $d$. Let $S_d$ denote the set of elements of $\mathbb F_{p^d}$ that are of degree $d$ over $\mathbb F_p$.
The multiplicative group $\mathbb F_{p^d}^\times$ has order $p^d - 1$, and exactly $(p^d - 1)/2$ of its elements are quadratic residues. For an element $\beta \in \mathbb F_{p^d}^\times$, we have
$(x+t)^{(p^d-1)/2} \equiv 1 \pmod{q(x)} \quad \Longleftrightarrow \quad \alpha + t \text{ is a quadratic residue in } \mathbb F_{p^d},$
where $\alpha$ is a root of $q(x)$. If $\alpha + t = 0$, then $(x+t)^{(p^d-1)/2} \equiv 0 \pmod{q(x)}$, which does not satisfy the congruence. Since $\alpha$ has degree $d \ge 1$, $\alpha + t \ne 0$ for any integer $t$. Thus the condition reduces exactly to checking whether $\alpha + t$ is a quadratic residue in $\mathbb F_{p^d}$.
Step 1: Counting irreducible polynomials via Frobenius orbits
Consider the Frobenius automorphism $\phi: \mathbb F_{p^d} \to \mathbb F_{p^d}$ defined by $\phi(\beta) = \beta^p$. Each element $\alpha \in S_d$ has minimal polynomial
$q_\alpha(x) = \prod_{i=0}^{d-1} (x - \alpha^{p^i}).$
The $d$ elements ${\alpha, \alpha^p, \alpha^{p^2}, \dots, \alpha^{p^{d-1}}}$ form the orbit of $\alpha$ under Frobenius. Therefore, each irreducible polynomial of degree $d$ corresponds to exactly one orbit of size $d$ in $S_d$.
Let us define
$N_t = { \alpha \in S_d : \alpha + t \text{ is a quadratic residue in } \mathbb F_{p^d} }.$
We wish to count the number of irreducible polynomials $q(x)$ for which $(x+t)^{(p^d-1)/2} \equiv 1 \pmod{q(x)}$. Each such $q(x)$ corresponds to exactly $d$ elements of $N_t$ forming a Frobenius orbit. Therefore, the number of irreducible polynomials is
$n(p,d) = \frac{|N_t|}{d}.$
Step 2: Independence of $t$
Consider the translation map $\tau_s: \mathbb F_{p^d} \to \mathbb F_{p^d}$ defined by $\tau_s(\beta) = \beta + s$ for $s \in \mathbb F_p$. This is a bijection of the additive group of $\mathbb F_{p^d}$. For each $t$, the set $N_t$ is the image of $N_0$ under translation by $t$:
$N_t = { \alpha \in S_d : \alpha + t \in (\mathbb F_{p^d}^\times)^2 } = { \alpha - t : \alpha \in N_0 }.$
Since translation is a bijection of $S_d$, it preserves the cardinality of the set. Therefore $|N_t| = |N_0|$, so the number of irreducible polynomials corresponding to $N_t$ is independent of $t$. Define
$n(p,d) = \frac{|N_0|}{d}.$
This proves property (i).
Step 3: Counting polynomials satisfying property (ii)
Now consider $0 \le t_1 < t_2 < p$ and the congruence
$(x+t_1)^{(p^d-1)/2} \equiv (x+t_2)^{(p^d-1)/2} \pmod{q(x)}.$
This is equivalent to
$(\alpha + t_1)^{(p^d-1)/2} = (\alpha + t_2)^{(p^d-1)/2} \quad \text{in } \mathbb F_{p^d}$
for a root $\alpha$ of $q(x)$. Let
$M_{t_1,t_2} = { \alpha \in S_d : (\alpha + t_1)^{(p^d-1)/2} = (\alpha + t_2)^{(p^d-1)/2} }.$
Subtract $t_1$ from both sides and set $s = t_2 - t_1 \in \mathbb F_p^\times$. Then the condition becomes
$(\alpha)^{(p^d-1)/2} = (\alpha + s)^{(p^d-1)/2}.$
Equivalently, $\alpha$ satisfies
$(\alpha)^{(p^d-1)/2} (\alpha + s)^{-(p^d-1)/2} = 1 \quad \Longleftrightarrow \quad (\alpha/(\alpha + s))^{(p^d-1)/2} = 1.$
The map $f: \alpha \mapsto \alpha/(\alpha + s)$ is a bijection of $S_d$ onto itself: for $\alpha \in S_d$, $\alpha \ne -s$, and $\alpha = -s$ cannot occur because elements of $S_d$ have degree $d \ge 1$ over $\mathbb F_p$, whereas $-s \in \mathbb F_p$.
Thus $|M_{t_1,t_2}| = |N_0|$, and the number of corresponding irreducible polynomials is again
$n(p,d) = \frac{|N_0|}{d}.$
This proves property (ii).
Step 4: Conclusion
Define $n(p,d) = |N_0|/d$, where $N_0 = { \alpha \in S_d : \alpha \text{ is a quadratic residue in } \mathbb F_{p^d} }$. Then
- For all integers $t$, exactly $n(p,d)$ irreducible polynomials $q(x)$ of degree $d$ satisfy $(x+t)^{(p^d-1)/2} \equiv 1 \pmod{q(x)}$.
- For all integers $0 \le t_1 < t_2 < p$, exactly $n(p,d)$ irreducible polynomials $q(x)$ of degree $d$ satisfy $(x+t_1)^{(p^d-1)/2} \equiv (x+t_2)^{(p^d-1)/2} \pmod{q(x)}$.
This establishes the existence of a number $n(p,d)$ satisfying both properties. ∎
This solution addresses all critical gaps: it counts irreducible polynomials via Frobenius orbits, proves independence of $t$ using additive bijections, and handles property (ii) using the bijection $\alpha \mapsto \alpha/(\alpha+s)$.