MathLabs

Worked solution: The Gauss–Wantzel theorem: constructible regular polygons via cyclotomic fields

Step 6 of 8: Factoring φ(n)\varphi(n): why each odd prime must be a Fermat prime, used exactly once
In plain words

Euler's totient function has a convenient multiplicative formula built from the prime factorization of nn. Feeding that formula the requirement 'φ(n)\varphi(n) must be a power of 22' turns into two much sharper demands on nn's odd prime factors: each one can appear only once, and each one, minus 11, must itself be a power of 22.

Primes with p−1p-1 a power of 22 are rare and have a name — Fermat primes. So Gauss's condition boils down to: nn is a power of 22 times a product of distinct Fermat primes.

n=2kp1e1⋯pmem  ⟹  φ(n)=2k−1∏i=1mpiei−1(pi−1)n = 2^k p_1^{e_1}\cdots p_m^{e_m} \implies \varphi(n) = 2^{k-1}\prod_{i=1}^m p_i^{e_i-1}(p_i-1)
Detailed analysis

Write n=2kp1e1⋯pmemn = 2^k p_1^{e_1} \cdots p_m^{e_m} for distinct odd primes pip_i. Since Euler's totient function is multiplicative, φ(n)=2k−1∏i=1mpiei−1(pi−1)\varphi(n) = 2^{k-1}\prod_{i=1}^m p_i^{e_i - 1}(p_i - 1) for k≥1k\ge1 (drop the leading factor if k=0k=0). For φ(n)\varphi(n) to be a power of 22, every factor piei−1(pi−1)p_i^{e_i-1}(p_i-1) must itself be a power of 22.

Since pip_i is odd, the term piei−1p_i^{e_i-1} is a power of 22 only when ei−1=0e_i-1=0, i.e. ei=1e_i=1: each odd prime factor of nn must occur exactly once. What remains is that pi−1p_i - 1 itself be a power of 22, say pi−1=2rip_i - 1 = 2^{r_i}, so pi=2ri+1p_i = 2^{r_i}+1. A short argument (if rir_i had an odd factor d>1d>1, then 2ri+12^{r_i}+1 would be divisible by 2ri/d+12^{r_i/d}+1, a proper factor) shows such pip_i can be prime only when rir_i is itself a power of 22, ri=2sir_i=2^{s_i}, giving pi=22si+1p_i = 2^{2^{s_i}}+1 — a Fermat prime.

Combining both conditions: nn is constructible exactly when n=2kp1⋯pmn = 2^k p_1 \cdots p_m for distinct Fermat primes pip_i (Gauss 1801, Art. 366). This is precisely the pattern behind 17=222+117=2^{2^2}+1, the third Fermat prime, and behind n=3,5n=3,5, the first two.

Terms in this step
Fermat prime
A prime number of the form 22s+12^{2^s}+1 for some integer s≥0s\ge0. The only known Fermat primes are 3,5,17,257,655373, 5, 17, 257, 65537 (for s=0,1,2,3,4s=0,1,2,3,4); no others are known, and it is unknown whether any more exist.
Knowledge used in this step