The modular inverse of  in the ring of integers modulo  is an integer  such that