Modular arithmetic with exact integers Modular arithmetic with exact integers

Modular arithmetic with exact integers

Add, subtract, multiply, exponentiate or find a modular inverse. Inspect Euclidean division steps and export exact integer strings without floating-point rounding.

Use whole numbers such as -17, 0 or 25, with at most 256 digits. The modulus m must be at least 2; for exponentiation, b must be at least 0. Results are remainders from 0 to m - 1.

The modular inverse exists only when a and m have no common divisor greater than 1. The displayed steps calculate their greatest common divisor (GCD). This educational tool does not guarantee constant execution time and is not designed for cryptographic protection.

Quick start

Add, subtract, multiply, exponentiate or find a modular inverse. Inspect Euclidean division steps and export exact integer strings without floating-point rounding.

  1. Enter your own data and check units and assumptions.
  2. Calculate using the action button and review the result below.
  3. Export the last successful report; recalculate after editing inputs.

Other Tools

User reviews

Reviews are checked before publication. We publish genuine positive feedback and specific criticism. Spam and insults without useful detail are not published; profanity and personal details are masked. Positive votes are counted immediately; negative votes are counted after review.

Reviews reflect users’ experiences, not a guarantee of results or a description of the service limits. Use the rating buttons above to leave a review.

No published reviews in this language yet.