Modular inverse calculator wolfram. This is true for x=1 .