Close the inverse element according to the given module
Number Theory. Close the inverse element according to the given module. Found using the Eyler function a^(f(n)-1)(modn) f(n)- Eyler function