invmod

invmod(a, b)

Calculate the (modular) multiplicative inverse of a modulo b. Solution to the equation ax ≣ 1 (mod b)

Try it yourself:

See also:
All functions