I'm having some difficulty wrapping my head around the concept of units in ring theory. One such troubling instance is - In a ring $R$, if $p$ is a prime such that $p = am$, where $p, a, m \in R$ and $a$ is a unit, then $(p) = (m)$ (the ideals generated are equal). How do I go about reasoning this ?
Thanks in advance!