| 1 | initial version |
There is a dedicated inverse_mod function.
Use it as follows:
sage: inverse_mod(55, 89)
34
sage: inverse_mod(19, 141)
52
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.