0

Let n is divisible by m, and we have to find $V=\frac{n}{m}(mod)p$...

In case if we know the value of $n(mod)p$,$m(mod)p$ not n,m how can we find $V$ ?????

I know we can find answer by evaluating this $(n(mod)p * m^{p-2}(mod)p)(mod)p$.but in this we should have value of m.

I also want to know how inverse modulo works.

for example in case $\frac{63}{9}(mod)5$

3=63(mod)5 , 4=9(mod)5

answer will be $(3(mod)5*4^{5-2}(mod)5)(mod)5$ = 12(mod) 5 = 2

user69910
  • 151
  • 4

1 Answers1

1

$$63=3\pmod5\;,\;\;9=4=-1\pmod 5\Longrightarrow \frac{63}{9}=$$

$$3\cdot 4^{-1}\pmod 5=3\cdot4=2\pmod 5$$

Or directly:

$$\frac{63}{9}=7\Longrightarrow \frac{63}{9}=7=2\pmod 5$$

Note, btw, that $\,4^{5-2}=4^3=(-1)^3=-1=4\pmod 4\,$ ...

DonAntonio
  • 211,718
  • 17
  • 136
  • 287