Operations on Modulo
Operations on Modulo
modulo
In modular arithmetic, operations are
1.
performed "clock-wise" or within a
circular range.
There are four arithmetic
operations that can be performed
on modular arithmetic: addition
modulo n, subtraction modulo n,
2.
multiplication modulo n,
exponential modul
addition modulo: mod(+)
(a+b)mod n.
(38 + 4) mod 12 = ?
(20+4)mod12.
(12+6)mod 7
(9+6)mod 12.
subtraction in modulo operations:
(25 - 17) mod 7 = ?
1. Perform subtraction: 25 - 17 = 8
2. Divide by modulus (7): 8 ÷ 7 = 1
with remainder 1
3. Result: (25 - 17) mod 7 = 1
3. Result: (25 - 17) mod 7 = 1
# Example 2
(43 - 22) mod 9 = ?
1. Perform subtraction: 43 - 22 =
21
2. Divide by modulus (9): 21 ÷ 9 =
multiplication modulo: mod(×)
(a×b)mod n.
(9× 6) mod 12 = ?
First,1.
calculate the product: 4 × 6 = 54