compute inverse modulo
How in sage language can I find the inverse of mod ?
For example the inverse of 55 (𝑚𝑜𝑑 89)?
or the inverse of 19 (mod 141)
add a comment
There will be a maintenance on the server on November 14th 2025.
How in sage language can I find the inverse of mod ?
For example the inverse of 55 (𝑚𝑜𝑑 89)?
or the inverse of 19 (mod 141)
There is a dedicated inverse_mod function.
Use it as follows:
sage: inverse_mod(55, 89)
34
sage: inverse_mod(19, 141)
52
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2022-09-12 13:50:16 +0100
Seen: 4,979 times
Last updated: Sep 13 '22
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.