I’ve found this problem in a number theory book, it says:
If $a \equiv b \pmod n$ with $c>0$ and $\gcd(c,n)=1$, prove that $$\frac{a}{c} \equiv \frac{b}{c} \pmod n$$ It seems trivial but unfortunately i don’t know how to prove it .
I don’t know is it necessary to $c\mid a,b$ Because if $c\nmid a,b \implies \frac{a}{c} \notin \mathbb Z$ But modular arithmetic deals only with integers (I’m new to congruences so maybe I’m wrong.)