I need to prove the following result:
Let $a\in(\mathbb{Z}/q\mathbb{Z})[X]$ with $q$ prime. Then $$a(1)\equiv 0 \pmod{q} \;\Rightarrow\; (X-1)\,|\,a(X) \;\text{ in }\; (\mathbb{Z}/q\mathbb{Z})[X]$$
So far I have only managed to prove the converse. Any hint toward the right direction is therefore appreciated.