Macaulay2 » Documentation
Packages » Parametrization :: modularInverse
next | previous | forward | backward | up | index | toc

modularInverse -- Compute the inverse in Z/nZ.

Synopsis

Description

Computes the inverse of a in $\mathbb{Z}/n\mathbb{Z}$.

i1 : modularInverse(5,7)

o1 = 3
i2 : modularInverse(5,16)

o2 = 13
i3 : modularInverse(4,16)

o3 = false
i4 : modularInverse(1234567,12345678)

o4 = 10802467

Ways to use modularInverse :

For the programmer

The object modularInverse is a method function.