Modular arithmetic
Modulo calculator
Arithmetic in ℤ/mℤ, including fast modular exponentiation and the modular inverse.
Results are the least non-negative residue. Exponents must be zero or greater.
Try
- (17 ^ 5) mod 7
- 5
Calculators
Interactive discrete math for CS students: topics, proof trainer, practice, and browser-native tools.
What is in here
Calculators
Six calculators that run entirely in this browser. Inputs are validated, so a rejected entry says what is wrong instead of returning a confident wrong answer.
Modular arithmetic
Arithmetic in ℤ/mℤ, including fast modular exponentiation and the modular inverse.
Results are the least non-negative residue. Exponents must be zero or greater.