Prove the following, for positive integers m and n.
If $a \equiv b \pmod n$ then $am \equiv bm \pmod{mn}$ and conversely, If $am \equiv bm \pmod{mn}$ then $a \equiv b \pmod n$.
This makes sense to me logically. And I believe that this has something to do with the definition of multiples or divisors in modular arithmetic. Since $a - b$ is a multiple of $n$. Something along the lines of then also $am - bm $would be a multiple of $mn$. I'm not sure if the steps would be reversible so that I could also prove the converse.
However, I do not not know how to formalize this proof, or starting steps. Thank you for any help and support.
$a ≡ b\mod n$ ⇒ $a=k.n +b$ ⇒ $ am=k(nm)+mb$ ⇒ $am≡mb \mod nm$
Do reverse operation for reverse:
$am≡mb \mod nm$ ⇒ $ am=k(nm)+mb$ ⇒ $a=k.n +b$ ⇒$a ≡ b\mod n$