Let $p$ be a prime number. Let $b \in \mathbb{Z}$ be non-zero. Show that if $p$ does not divide $b$ then for all $a \in \mathbb{Z}$ there is some $m \in \mathbb{Z}$ such that $p|(a-mb)$?
I believe this had to do with a euclidean domain, but I am not positive how to prove.