Computes m for n-1 = m (mod p), where n and p are coprime.
Displays the steps of the extended Euclidean algorithm.
The modular inverse is:
Darren Sri-Jayantha