How can I express $((a-b)/c) \bmod m$ in terms of $a \bmod m$, $b \bmod m$ and $c \bmod m$?
Asked
Active
Viewed 73 times
1 Answers
1
Assuming the division is without remainder and that $c$ is relatively prime to $m$, you can just evaluate $(a-b)c^{-1}$ in $\mathbf Z/m\mathbf Z$. If $c$ is not relatively prime with $m$, you cannot deduce the value of $(a-b)/c$ modulo $m$ from the images of $a,b,c$ in $\mathbf Z/m\mathbf Z$ alone.
Marc van Leeuwen
- 115,048
cis2andmis10^9 + 7, then can I express that in a simple form? Also, what is meant by evaluating in Z/mZ? – Jatin Feb 02 '13 at 08:18