Let $f\in \mathbb{F}_q[X]$ be an irreducible polynomial of degree $n$, and let $k\in \mathbb{N}$. Prove that $f$ factors over $\mathbb{F}_{q^k}[X]$ as a product of irreducible polynomials of degree $\frac{n}{\left (n:k\right )}$, where $\left (n:k\right )=\text{gcd}\left (n,k\right )$.
I tried this: if $\alpha $ is a root of $f$ then $\alpha ^{q^r}$ is also a root of $f$ for every $r\in \mathbb{N}$. Therefore, if I were able to prove that $r=\frac{n}{\left (n:k\right )}$ is the least positive integer such that $\alpha ^{q^r}=\alpha$, then I would be done.
I could prove that $\mathbb{F}_{q^k}\cap \mathbb{F}_{q^n}=\mathbb{F}_{q^{\left (n:k\right )}}$, I do not know if it helps.