Anyone interested in finding the modular inverse of a number should check out my implementation of the Extended Euclidean Algorithm. Change ‘a’ and ‘b’ in the URL to find different inverses.