Definition (cyclotomic polynomial)
Let $ξ_n = e^{2πi/n}\in \C$. The $n$-th cyclotomic polynomial is $$ \begin{align*} Φ_n(X) := \prod_{a\in (\Z/n\Z)^\times} (X - ξ_n^a) \end{align*} $$ where $(\Z/n\Z)^\times = \sb{a\in \Z/n\Z}{\op{gcd}(a,n) = 1}$.
The roots of $Φ_n$ are precisely the primitive $n$-th roots of unity. > If $ξ^n = 1$ for $ξ\in \C$, then $ξ$ is a primitive $d$-th root of unity for some $d\mid n$, so $$ \begin{align*} X^n - 1 = \prod_{k=0}^{n-1} (X-e^{-2πik/n}) = \prod_{d\mid n} Φ_d(X). \end{align*} $$
$Φ_n(X)\in \Z[X]$ and is irreducible. Proof
Examples:
$Φ_1(X) = X - 1$
$Φ_2(X) = X + 1$
$Φ_3(X) = X^2 + X + 1$
$Φ_4(X) = X^2 + 1$
$Φ_5(X) = X^4 + X^3 + X^2 + X + 1$
$Φ_6(X) = X^2 - X + 1$