The following Lemma is from P.M. Cohn: Algebra Volume 1 (2nd ed.), 1982
Given $a, b_1, ..., b_r\in\Bbb Z$ if $a$ is coprime to each of $b_1,...,b_r$, then $a$ is coprime to $b_1...b_r$.
Proof. By Bezout's identity, $ax_i + b_iy_i=1$ for some integers $x_i,\ y_i$, hence $b_1...b_ry_1...y_r\ =\ (1-ax_1)...(1-ax_r)$, but this is of the form $1-a\mathit z$, so a is coprime to $b_1...b_r$, as we had to show.
How do you prove that $\displaystyle \prod_{j=1}^r (1-ax_j)$ is of the form $1-a\mathit z$ ?
$1-az$ means that the expected answer is $1\pmod a$. So we have to prove that:
$$\prod_{j=1}^r (1-ax_j)\equiv 1\pmod a$$
which, because $a, x_i\in\mathbb{Z}$, is true.