Based on my school, the cancellation law for modular arithmetic is as stated:
For all integers $a$, $b$, $c$, $n$, with $n > 1$ and $a$ and $n$ are coprime, if $ab$ $≡ ac $( $mod$ $n$), then $b ≡ c$ ( $mod$ $n$ ).
Apparently, the proof for this was to multiply both sides by $a$-1.
2 questions then stem from this:
1) If you do modular multiplication, shouldn't you multiply the modulus as well?
If $a \equiv b \mod n$, then $ma\equiv mb \mod {nm}$. Why isn't this happening when $a$-1 is multiplied on both sides,i.e. I don't see a $a$-1 in the modulus?
2)Isn't multiplicative inverse of modulo $n$ such that $a$-1$a$ ≡ $1$ ( $mod$ $n$) (ie must be congruent to 1 modulo n)?
$\boxed{\text{Solve the equation $5 x+13 y=75$ for integers $x, y\quad$ }}$
Such an equation is called a $\color{red}{\text{Diophantine equation}}$.
- Re-write: $5 x=75-13 y$
- Then $5 x \equiv 75(\bmod 13),$ by Theorem $8.4 .1$ (Epp)
- Re-write: $5 x \equiv 5 \cdot 15(\bmod 13)$
- Note that 5 and 13 are coprime.
- Thus, $x \equiv 15(\bmod 13),$ by Theorem $8.4 .9$ (Epp)
- Thus, $x \equiv 2(\bmod 13),$ because 15 mod $13=2$
- So $x=2$ is a solution.
- Substituting back into the equation: $5(2)+13 y=75$
- And thus $y=5$
As you can see, on line 5, when they multiply both sides by $5$-1, its not congruent to 1 modulo 13?
PS:
I looked up on this possible duplicate: Why can I cancel in modular arithmetic when working modulus a prime number? but didn't seem to understand both the poster and the answerer.