Exercise 2 Cheat Sheet
Finite Fields 𝔽p[X]/(P(X)): Generators, Powers & Inverses
Recognition
Work in:
𝔽p[X] / (P(X)), α = [X]
Typical tasks:
- Test if α is a generator
- Compute powers
- Compute inverses
If called a field, assume P(X) is irreducible.
Core Rule (No Mixing)
Compute in X → final answer in α
Never mix representations during computation.
Step 0: Reduction Rule (GENERAL)
From:
P(X) = Xk + ak−1·Xk−1 + … + a0
derive:
Xk ≡ −(ak−1·Xk−1 + … + a0) (mod p)
Important: all coefficients are reduced mod p.
Example (only in 𝔽2):
X4 + X + 1 = 0 ⇒ X4 ≡ X + 1
Structure Facts
Let deg(P) = k.
|K| = pk, |K*| = N = pk − 1
aN = 1 (a ≠ 0)
(am)−1 = aN−m
Generator Test
Factor:
N = Π qi
Check only:
αN/qi
Decision:
α is a generator ⇔ ∀ qi : αN/qi ≠ 1
Inverse Methods
Method 1: Exponent Method (fast)
If element is αm:
(αm)−1 = αN−m
Use repeated squaring + reduction via P(X).
Best when element is already a power of α.
Method 2: Extended Euclidean Algorithm (EEA)
Use when element is a polynomial in α.
Goal:
A(X)−1 mod P(X)
Step 1 (Euclidean algorithm):
P(X) = Q1·A(X) + R1, A(X) = Q2·R1 + R2, …
until:
Rk = 1
Step 2 (Bezout identity):
1 = U(X)·A(X) + V(X)·P(X)
Step 3 (mod reduction):
V(X)·P(X) ≡ 0 ⇒ 1 ≡ U(X)·A(X)
Thus:
A(X)−1 = U(X) (mod P(X))
Worked Pattern (EEA Example)
Given:
P(X) = X4 + X + 1, A(X) = X2 + 1
Forward:
X4 + X + 1 = (X2 + 1)2 + X
X2 + 1 = X · X + 1
Backward (compressed form):
1 = (X2 + 1)(X3 + X + 1) + X(X4 + X + 1)
Modulo P(X):
X(X4 + X + 1) ≡ 0
So:
(X2 + 1)−1 ≡ X3 + X + 1
Back to α:
α−8 = α3 + α + 1
Exam Template
𝔽2[X] / (X4 + X + 1), N = 15
Generator test:
α3, α5
Inverse:
(α8)−1 = α7
or use EEA if expression is not a pure power.
Shortcuts
- Only test exponents N/q
- Reduce after every multiplication
- EEA avoids discrete log
- Exponent method avoids polynomial algebra
Common Mistakes
- Mixing X and α
- Forgetting coefficient reduction mod p
- Using exponent method on non-powers
|K*| = pk−1, (am)−1 = aN−m, a is primitive ⇔ aN/q ≠ 1