First time here? Check out the FAQ!
answered 2022-09-12 19:43:20 +0100
There is a dedicated inverse_mod function.
inverse_mod
Use it as follows:
sage: inverse_mod(55, 89) 34 sage: inverse_mod(19, 141) 52