IJM
Student ToolsMathematics & Logic

Modular Exponentiation & Inverse Calculator

Compute a^b mod m and modular multiplicative inverse a^(-1) mod m via Extended Euclidean algorithm.

Processed in browserNo upload

Guide · Student Tools / Mathematics & Logic

About Modular Exponentiation & Inverse Calculator

Compute exact modular exponentiation `a^b mod m` via binary BigInt square-and-multiply and solve modular multiplicative inverse `a^(-1) mod m` using the Extended Euclidean algorithm.

When to use this tool

Essential for RSA/Diffie-Hellman cryptography homework, discrete math proofs, and hashing period checks.

How to use Modular Exponentiation & Inverse Calculator

  1. Enter integer Base `a`, non-negative Exponent `b`, and Modulus `m > 1`.
  2. Inspect `a^b mod m`, `gcd(a, m)`, and `a^(-1) mod m` (when coprime).

Supported inputs, options, and outputs

  • Inputs: Integer Base, Exponent, and Modulus (> 1).
  • Outputs: Exact BigInt `a^b mod m`, GCD check, and Extended Euclidean modular inverse.

Accuracy notes and limitations

  • Modular inverse exists strictly when `gcd(a, m) = 1`; non-coprime inputs accurately report No Inverse Exists.

Privacy and browser processing

Study planners, mathematical equations, and physics calculations evaluate strictly inside browser memory without transmitting student inputs or coursework to IJM servers. Hosted deployments load cookie-free analytics and Google Fonts.

Read the full IJM Privacy Policy or browse all Student Tools.

Related Tools

Ranked by matching inputs, outputs, and workflow compatibility

View all 114 in Student Tools →