Splitting field over a finite field (source code)

= Splitting field over a finite field

Let $f\in\mathbb F_q[X]$ have irreducible factors of degrees $d_1,\ldots,d_r$. A root of a degree-$d_i$ factor lies in $\mathbb F_{q^n}$ exactly when $d_i$ divides $n$. Consequently the splitting field of $f$ is
$$
\mathbb F_{q^m},
\qquad m=\operatorname{lcm}(d_1,\ldots,d_r).
$$