The first −2: cyclotomic polynomials and 105
The $n$-th cyclotomic polynomial $\Phi_n(x)$ is the monic polynomial whose roots are the primitive $n$-th roots of unity. It has integer coefficients and degree $\varphi(n)$, and $x^n - 1 = \prod_{d \mid n}\Phi_d(x)$. The first few are $$\Phi_1 = x - 1,\quad \Phi_2 = x + 1,\quad \Phi_3 = x^2 + x + 1,\quad \Phi_6 = x^2 - x + 1,\quad \Phi_{15} = x^8 - x^7 + x^5 - x^4 + x^3 - x + 1.$$ Compute a few dozen more and a pattern jumps out: every coefficient is $0$, $1$ or $-1$. It holds for $n = 1, 2, \dots, 104$. Then:
$105 = 3 \cdot 5 \cdot 7$ is the smallest product of three distinct odd primes, and that is no accident: Migotti showed in 1883 that $\Phi_{pq}$ has all coefficients in $\{-1, 0, 1\}$ for primes $p, q$, and powers and the prime $2$ do not create new coefficients. Once three odd primes are available, the pattern breaks, and it keeps breaking: a computer search finds the first $n$ where the largest coefficient in absolute value (the height) reaches each value.
| height | 2 | 3 | 4 | 5 | 6 | 7 |
|---|---|---|---|---|---|---|
| first n | 105 | 385 | 1365 | 1785 | 2805 | 3135 |
Schur showed that the coefficients are unbounded, Erdős that the heights grow faster than any power of $n$ along a subsequence, and Vaughan (1975) that they can be as large as $\exp\!\big(n^{\log 2/\log\log n}\big)$. A pattern that survives the first hundred cases is no evidence at all; the post on aliquot sequences and the prime races lab have more examples.
Full proof: Schur's argument, and why the coefficient at x⁷ is −2
For $n > 1$, Möbius inversion of $x^n - 1 = \prod_{d \mid n}\Phi_d(x)$ gives $$\Phi_n(x) = \prod_{d \mid n} (1 - x^d)^{\mu(n/d)}.$$
Proposition (Schur). Let $k \ge 3$ be odd and $p_1 < p_2 < \dots < p_k$ primes with $p_1 + p_2 > p_k$, and $n = p_1 \cdots p_k$. Then the coefficient of $x^{p_k}$ in $\Phi_n(x)$ is $1 - k$.
Proof. Work modulo $x^{p_k + 1}$. Any divisor $d$ of $n$ with two or more prime factors has $d \ge p_1p_2 > p_1 + p_2 > p_k$, so $1 - x^d \equiv 1$. The remaining divisors are $d = 1$, with $\mu(n) = (-1)^k = -1$, and $d = p_i$, with $\mu(n/p_i) = (-1)^{k-1} = 1$. Hence $$\Phi_n(x) \equiv \frac{(1 - x^{p_1})\cdots(1 - x^{p_k})}{1 - x} \equiv (1 + x + x^2 + \cdots)(1 - x^{p_1} - x^{p_2} - \cdots - x^{p_k}),$$ since a product of two of the $x^{p_i}$ has degree $p_i + p_j > p_k$. The coefficient of $x^{p_k}$ is $1 - k$. $\square$
For $3, 5, 7$ we get $k = 3$ and the coefficient $-2$ at $x^7$, exactly the first marigold bar. Since for every odd $k$ there are $k$ primes in an interval $(m, 2m)$ for large $m$ (a consequence of the prime number theorem), the hypothesis can be met and the coefficients are unbounded.
Further reading
- R. C. Vaughan, Bounds for the coefficients of cyclotomic polynomials, Michigan Mathematical Journal 21 (1975).
- P. Moree and H. Hommersom, Value distribution of Ramanujan sums and of cyclotomic polynomial coefficients, 2003 (arXiv:math/0307352).
- T. Y. Lam and K. H. Leung, On the cyclotomic polynomial $\Phi_{pq}(X)$, American Mathematical Monthly 103 (1996).