I'm asked to solve
If $R$ is a unique factorization domain and for $a$, $b$ two elements that are relatively prime in $R$ and $a$ divides $bc$, then $a$ divides $c$.
While trying to prove this, I've proved that $a$ and $c$ are associate. And this is more than what is required, so I'm afraid I've done something wrong. Can anybody help me?
First of all, if $a$ was irreducible, then it is prime and we are done. If it wasn't then it can be written as a finite product of irreducible elements, $b$ and $c$ can be written similarly.
$a$ divides $bc$ implies that $bc = ka$ for some $k \in R$. Now since the irreducible elements need to be associate and $a$ doesn't divide $b$. the irreducible factors of $a$ are associate to the ones of $c$. Which implies that $a$ is associate to $c$.
There is an easy proof that does not require unique factorisation, just the existence of least common multiples. Since $\gcd(a,b)=1$ and a least common multiple of $a,b$ exists, that least common multiple must be (the association class of) $ab$. Now $bc$ is by hypothesis a multiple of $a$ and it is clearly a multiple of $b$, so by the defining property of least common multiples it is a multiple of $ab$. We have $ab\mid bc$, and one can simplify that by$~b$ to give $a\mid c$.