Jinsi ya kukokotoa Modular Arithmetic
Modular Arithmetic ni nini?
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.
Mwongozo wa Hatua kwa Hatua
- 1a mod m = remainder of a ÷ m
- 2(a+b) mod m = ((a mod m)+(b mod m)) mod m
- 3Modular exponentiation: fast algorithm for aⁿ mod m
Mifano Iliyotatuliwa
Ingizo
17 mod 5
Matokeo
2
17 = 3×5 + 2
Je, uko tayari kukokotoa? Jaribu Kikokotoo kisicholipishwa cha Modular Arithmetic
Jaribu mwenyewe →