TITLE: Irreducibility of a particular polynomial
QUESTION [5 upvotes]: I've got this problem for my homework: find out whether the polynomial
$$f(x)=x(x-1)(x-2)(x-3)(x-4) - a$$
is irreducible over the rationals, where $a$ is integer which is congruent to $3$ modulo $5$. 
It is easy to verify that $f(x)$ has no integer zeros (and no rational zeros too) and, because $f(x)$ is primitive, it is irreducible over $\mathbb{Z}$ iff it is irreducible over $\mathbb{Q}$. It is also clear to me that, since $f(x)$ has no integer zeros, only way to factorize $f(x)$ over $\mathbb{Z}$ is $(x^3 + bx^2 + cx +d)(x^2 + ex +f)$, i.e. as a product of one irreducible cubic polynomial and one irreducible quadratic polynomial, both primitive. I've got pretty ugly system of $5$ equations with $5$ variables. So I decided to put the whole story in $(\mathbb{Z}/5\mathbb{Z})[x]$. Then I've got the polynomial $g(x) = x^5 + 4x +2$. Since I firmly believe that $f(x)$ is irreducible over $\mathbb{Z}$, it means that I must check whether the $g(x)$ is irreducible over $\mathbb{Z}/5\mathbb{Z}$. Is there any other way than brute force?

REPLY [3 votes]: Observation: In ${\mathbb F}_5$ we have $x(x-1)(x-2)(x-3)(x-4) = x^5 - x$.
This follows from the fact that over a finite field $F$ we have $x^{|F|} - x = \prod_{g\in F} (x-g)$ which you can easily check by noticing that all elements are roots and that a polynomial of degree $|F|$ can't have any more roots.
Claim: More generally, we will prove that given a prime $p$ and $t\in{\mathbb F}_p\setminus \{0\}$ we have that $f(x)= \prod_{k\in{\mathbb F}_p} (x-k) - t = x^p - x - t \in{\mathbb F_p}[x]$ is irreducible over ${\mathbb F}_p$.
Proof. Let $\alpha$ be a root of $f$ over some extension field.
Note that more generally over a finite field ${\mathbb F}_q$ we have that, the monic irreducible polynomial $m_\alpha (x)$ for $\alpha$ over ${\mathbb F}_q$, satisfies
$$ m_\alpha (x) = \prod_{k=0}^{n-1} (x-\alpha^{q^k}) $$
where $n$ is the smallest positive integer such that $\alpha^{q^n} = \alpha$.  
This is a well-known result in finite fields. Without getting into too many details, this follows from the fact that $\text{Gal}\left({\mathbb F}_{q^n}/{\mathbb F}_q\right)$ is cyclic, generated by the Frobenius map $x\mapsto x^q$. Thus the  roots above are actually the Galois conjugates of $\alpha$, and the result follows from a well-known theorem in Galois Theory.
We need only check now that in our case, with $p=q$, and $f(\alpha)=0$, our $n$ must be $p$. Indeed, since $f(\alpha) = 0$, we have 
$$ \alpha^{p^n} = (\alpha^p)^{p^{n-1}} = \left( \alpha + t \right)^{p^{n-1}} = \alpha^{p^{n-1}} + t^{p^{n-1}} =\alpha^{p^{n-1}} + t = \ldots = \alpha + n \times t  $$
Since $t\neq 0$, the smallest such $n$ is clearly $p$, since otherwise $n\times t \neq 0$. Thus the number of linear factors (Galois conjugates) in $m_\alpha(x)$ is $p$ and we get that our polynomial was irreducible. $\square$
Conclusion: This proves that, given a prime $p$, the polynomial $g_p(x) = x\cdot (x-1)\ldots (x-p+1) - a \in {\mathbb Z}[x]$, with $p\not | a$, must be irreducible over ${\mathbb Q}$. 
Indeed in ${\mathbb F}_p$ we have that $g_p(x)$ reduces to $f(x) = x^p - x - \bar{a}$ and $\bar{a}=t\neq 0$.
We may also substitute $k$ in the factors $(x-k)$ in the product by any element $\equiv k(\bmod. p)$.
A link:  There has recently been a related post, which is more general, and incredibly interesting.
Final remark: When it comes to Finite Fields, the above result on irreducible polynomials is pretty often a good way to prove that a given polynomial is irreducible.