next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Parametrization :: modularInverse

modularInverse -- Compute the inverse in Z/nZ.

Synopsis

Description

Computes the inverse of a in ℤ/nℤ.

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 :