Generalized Euclid's Lemma:
Let $a_1,a_2,a_3,...,a_n \in \mathbb{Z}$.
If $p$ is a prime number such that $p | a_1 \cdot a_2 \cdot a_3 \cdot ... \cdot a_n$,
then $\exists i \in \{1,2,3,...,n\}$ such that $p|a_i$.
According to my book, it says the proof can be done by using induction.
How would I go about writing the proof?