Let $f(x) = (x - a_1)(x - a_2)...(x - a_n) + 1$, where $a_1,a_2,a_3,\dots , a_n$ are distinct integers. Show that
if $n$ is odd , then $f(x)$ is irreducible over $\mathbb{Z}$, i.e $f(x)$ cannot be factorized in the form $f(x) = p(x)q(x)$ where $p(x)$ and $q(x)$ are polynomials with integer coefficients and their degrees are less than the degree of $f(x)$ ( which is $n$ here).
If $n$ is even, either $f(x)$ is irreducible over $\mathbb{Z}$ or is the square of a polynomials with integer coefficients