a/b mod p

ab^{-1} \pmod{p} = ab^{p-2}\pmod{p} (making use of Fermat's little theorem).

Comments

Popular posts from this blog

ETF - Euler Totient Function

Minimum Steps to reach a destination (Recursive method )

Divide Intervals Into Minimum Number of Groups