Compute modular operations with clean inputs and instant summaries. Visualize residues through simple interactive graphs. Check inverses, powers, divisions, and congruences using dependable theory.
Use the fields below to solve modular sums, products, powers, inverses, divisions, and congruence checks.
Modular arithmetic reduces every number into a residue class determined by the modulus. The calculator uses these formulas:
| Operation | Inputs | Formula | Result |
|---|---|---|---|
| Addition | a = 17, b = 9, n = 12 | (17 + 9) mod 12 | 2 |
| Subtraction | a = 21, b = 8, n = 7 | (21 - 8) mod 7 | 6 |
| Multiplication | a = 11, b = 4, n = 9 | (11 × 4) mod 9 | 8 |
| Exponentiation | a = 5, e = 4, n = 13 | 54 mod 13 | 1 |
| Inverse | a = 7, n = 26 | 7-1 mod 26 | 15 |
| Congruence | a = 38, c = 14, n = 12 | 38 ≡ 14 (mod 12) | Yes |
Modular arithmetic studies remainders after division by a fixed modulus. Instead of keeping full integers, it places values into repeating residue classes such as 0 through n-1.
Normalization converts negative or large integers into standard residues. This keeps answers consistent and makes comparisons easier across all modular operations.
A modular inverse exists only when gcd(a, n) = 1. If the number and modulus share a factor, no inverse can satisfy a × a^-1 ≡ 1.
Modular division is not ordinary division. It means multiplying by the inverse of the divisor. So a / b mod n becomes a × b^-1 mod n, when the inverse exists.
The gcd shows whether a value is coprime with the modulus. Coprime values are essential for inverses, reduced residue systems, and multiplicative order.
Yes, but every integer reduces to 0 modulo 1. That makes the system trivial, and inverses or meaningful residue patterns do not apply.
Repeated squaring computes large exponents efficiently. It avoids huge intermediate values and significantly reduces the number of multiplication steps needed.
The graph visualizes how residues cycle under repeated modular operations. It helps reveal patterns, periodicity, and overlap between congruent values.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.