Modular Inverse

Finds x where a·x ≡ 1 (mod m). Exists only when a and m are coprime.

  • ID: modular-inverse
  • Category: Arithmetic / Logic
  • Aliases: modinv, inverse mod

Arguments

ArgumentTypeDefaultConstraints
Value (a)string""Blank takes the input
Modulus (m)string""Blank takes the input