Zorgoth.com
Math
Modulo
Calculator
Calculate remainders and explore modular arithmetic.
a mod n
mod
Calculate
Modular Exponentiation (aⁿ mod m)
Calculate
Modulo Table
Modulus n =
In most languages:
17 % 5 = 2
Python: −7 % 3 = 2 (always positive) · C/Java: −7 % 3 = −1 (sign of dividend)