Skip to main content

learn.howToCalculate

learn.whatIsHeading

Modular arithmetic wraps numbers around after reaching a modulus. a mod m is the remainder when a is divided by m. Foundational in cryptography, checksums, and number theory.

Hướng dẫn từng bước

  1. 1a mod m = remainder of a ÷ m
  2. 2(a+b) mod m = ((a mod m)+(b mod m)) mod m
  3. 3Modular exponentiation: fast algorithm for aⁿ mod m

Ví dụ có lời giải

đầu vào
17 mod 5
Kết quả
2
17 = 3×5 + 2

Sẵn sàng để tính toán? Dùng thử Máy tính Modular Arithmetic miễn phí

Hãy tự mình thử →

Cài đặt