Modular Multiplicative Inverse Calculator — Find x in ax ≡ 1 (mod m)
Our Modular Multiplicative Inverse Calculator finds the integer x satisfying a × x ≡ 1 (mod m) — the modular equivalent of division — using the extended Euclidean algorithm. It first checks that gcd(a, m) = 1 (the condition for an inverse to exist) and reports clearly when no inverse is possible, computing everything with BigInt precision for arbitrarily large a and m.
Quick Answer
This calculator finds x satisfying a × x ≡ 1 (mod m) via the extended Euclidean algorithm, checking that gcd(a, m) = 1 first and reporting clearly when no inverse exists.
How to Use the Modular Multiplicative Inverse Calculator — Solve ax ≡ 1 (mod m)
- 1
Enter a and the modulus m (whole numbers).
- 2
Click 'Calculate' to find x such that a × x ≡ 1 (mod m).
- 3
If gcd(a, m) ≠ 1, the calculator reports that no inverse exists rather than an incorrect result.
Why Use Modular Multiplicative Inverse Calculator — Solve ax ≡ 1 (mod m)?
Ordinary division doesn't exist in modular arithmetic, but a modular multiplicative inverse serves the same purpose: multiplying by a's inverse mod m has the same effect as 'dividing by a' within that modulus. An inverse exists precisely when a and m share no common factors (gcd(a, m) = 1), and the extended Euclidean algorithm finds it directly as a byproduct of computing that gcd via its Bézout coefficients. This calculator is the direct counterpart to the site's Modular Exponentiation Calculator — together they cover both modular multiplication's forward direction (exponentiation) and its inverse.
Frequently Asked Questions
Related Tools
Extended Euclidean Algorithm Calculator — gcd + Bézout Coefficients
Compute gcd(a, b) and the Bézout coefficients x, y satisfying ax + by = gcd(a, b) using the extended Euclidean algorithm. Free calculator with BigInt precision.
Modular Exponentiation Calculator — Fast bᵉ mod m Online
Calculate bᵉ mod m for arbitrarily large exponents using fast square-and-multiply exponentiation. Free calculator with BigInt precision, essential for cryptography.
Euler's Totient Function Calculator — φ(n) Online
Calculate Euler's totient function φ(n) — the count of integers from 1 to n coprime to n — via prime factorization. Free calculator showing the full factorization.
Ring and Field Calculator — Modular Arithmetic in ℤₙ Online
Perform +, −, ×, ÷ in ℤₙ (integers mod n), see whether ℤₙ is a field or just a ring, and list its units and zero divisors. Free calculator, instant results.