image.
source

Extended Euclidean Algorithm Modular Inverse Images...