Discrete Math Calculator (Modular Arithmetic)

Modular arithmetic tools: a mod n, the modular inverse, solving linear congruences a·x ≡ b (mod n), and gcd/lcm.

Results

Enter your details and click Calculate to see your results.
About This Calculator

a has an inverse mod n only when gcd(a, n) = 1. a·x ≡ b (mod n) has solutions exactly when gcd(a, n) divides b.

Example

Example: the inverse of 3 mod 11 is 4.

Assumptions

Whole numbers.

Frequently Asked Questions

What does a ≡ b (mod n) mean?

a and b leave the same remainder when divided by n.

Related Calculators

About the Author

Imran Hossain
Imran Hossain

Professional SEO, Digital Marketer Specialist

I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist

View full profile