On this page
If you have met complex numbers in Class 11, you have met the roots of unity: the n points spaced evenly around the unit circle that solve xⁿ = 1. Cyclotomic polynomials sort those points into families, and that sorting is a standard tool in olympiad number theory.
What is a cyclotomic polynomial?
A number ζ is a primitive n-th root of unity if ζⁿ = 1 but no smaller positive power of ζ equals 1. For n = 4 the roots of x⁴ = 1 are 1, i, −1 and −i; only i and −i are primitive, because 1 already works at power 1 and −1 at power 2.
The n-th cyclotomic polynomial Φₙ(x) is the monic polynomial with integer coefficients that is the minimal polynomial over the rationals of any primitive n-th root of unity (Wikipedia: Cyclotomic polynomial). Its roots are exactly the primitive n-th roots, each once.
The degree of Φₙ is φ(n), Euler's totient, the count of numbers from 1 to n that share no factor with n (Wolfram MathWorld). Φₙ is also irreducible over the rationals, a result due to Gauss. For a prime p, the standard proof that Φₚ cannot be factored uses Eisenstein's criterion for irreducibility.
Why is xⁿ − 1 the product of Φ_d(x) over the divisors of n?
Every root of xⁿ − 1 has an order d, the smallest power that returns it to 1. That order divides n, and the root is a primitive d-th root of unity. So the n roots split into one family per divisor d of n, and collecting each family gives
xⁿ − 1 = ∏ Φ_d(x), taken over all divisors d of n.
Comparing degrees gives a free identity: n equals the sum of φ(d) over the divisors d of n. For n = 12 that is 1 + 1 + 2 + 2 + 2 + 4 = 12. Running the product backwards with Möbius inversion gives a closed formula for Φₙ, but for small n plain division is faster.
How do you compute Φ₁ to Φ₁₂ by hand?
The method has three steps.
List the divisors of n.
Multiply the Φ_d you already know for every divisor d smaller than n.
Divide xⁿ − 1 by that product. The quotient is Φₙ.
For a prime p the only smaller divisor is 1, so Φₚ(x) = (xᵖ − 1)/(x − 1) = xᵖ⁻¹ + … + x + 1. For other n, factor xⁿ − 1 first to save work:
Φ₆: x⁶ − 1 = (x³ − 1)(x³ + 1). The first factor holds Φ₁Φ₃, and x³ + 1 = Φ₂Φ₆, so Φ₆ = (x³ + 1)/(x + 1) = x² − x + 1.
Φ₉: Φ₁Φ₃ = x³ − 1, so Φ₉ = (x⁹ − 1)/(x³ − 1) = x⁶ + x³ + 1.
Φ₁₀: x⁵ + 1 = Φ₂Φ₁₀, so Φ₁₀ = (x⁵ + 1)/(x + 1) = x⁴ − x³ + x² − x + 1.
Φ₁₂: x⁶ + 1 = Φ₄Φ₁₂, so Φ₁₂ = (x⁶ + 1)/(x² + 1) = x⁴ − x² + 1.
Your full table should match the list on Wikipedia:
Φ₁ = x − 1, Φ₂ = x + 1, Φ₃ = x² + x + 1, Φ₄ = x² + 1
Φ₅ = x⁴ + x³ + x² + x + 1, Φ₆ = x² − x + 1
Φ₇ = x⁶ + x⁵ + x⁴ + x³ + x² + x + 1, Φ₈ = x⁴ + 1
Φ₉ = x⁶ + x³ + 1, Φ₁₀ = x⁴ − x³ + x² − x + 1
Φ₁₁ = x¹⁰ + x⁹ + … + x + 1, Φ₁₂ = x⁴ − x² + 1
Why does Φ₁₀₅ have a coefficient of −2?
In the table every coefficient is 0, 1 or −1, and it is tempting to conjecture that this always holds. Migotti showed in 1883 that it does hold when n = pq for distinct primes p and q (Wolfram MathWorld), and more generally whenever n has at most two distinct odd prime factors (Wikipedia).
The pattern breaks at 105 = 3 × 5 × 7, the smallest product of three distinct odd primes. Φ₁₀₅ has degree 48 and coefficient −2 on both x⁷ and x⁴¹ (Wolfram MathWorld). The sequence of smallest n whose Φₙ contains ±2, ±3, ±4 begins 105, 385, 1365 (OEIS A013594). Three odd primes are not enough on their own, though: Φ₂₃₁, with 231 = 3 × 7 × 11, still has only 0 and ±1 (Wikipedia).
The lesson for exams is bigger than the fact: twelve agreeing cases are evidence, not a proof.
How are cyclotomic polynomials used in olympiad problems?
The workhorse is a statement about prime factors. If p is an odd prime dividing Φₙ(b) for an integer b, then either p divides n or n divides p − 1, that is, p ≡ 1 (mod n) (Wikipedia). Test it yourself:
Φ₅(3) = 121 = 11², and 11 ≡ 1 (mod 5).
Φ₁₂(2) = 13, and 13 ≡ 1 (mod 12).
Φ₆(5) = 21 = 3 × 7: 7 ≡ 1 (mod 6), and 3 divides 6.
The lemma proves that there are infinitely many primes ≡ 1 (mod n), a special case of Dirichlet's theorem on primes in progressions. Suppose p₁, …, pₖ were all of them. Set N = n·p₁⋯pₖ. Since Φₙ(0) = 1 for n ≥ 2, Φₙ(N) leaves remainder 1 on division by N, and Φₙ(N) > 1, so it has a prime factor q that divides neither n nor any pᵢ. The lemma then forces q ≡ 1 (mod n): a new prime, which is a contradiction.
To practise, compute Φ₁₅ by division (its degree should be 8), then split 2¹² − 1 = 4095 into its six cyclotomic values. For background, the Fermi Concept Library has a lesson for every mathematics concept, and the Fermi Problem Library has a step-by-step solver that explains the reasoning rather than printing an answer.



