Module 4 2 Operation On Modular Arithmetic
Module 4 2 Operation On Modular Arithmetic
Module 4 2 Operation On Modular Arithmetic
MATHEMATICAL SYSTEM
Topic 4 - 2
OPERATIONS ON
MODULAR ARITHMETIC
Objectives:
Solution:
Add 23 + 38 to produce 61. To evaluate 61 mod 12, divide 61 by modulus, 12. The
answer is the remainder.
12 7 (mod 5)
17 7 (mod 5) add 5 to 12
22 7 (mod 5) add 5 to 17 and so on.
−𝟐 −𝟓 −𝟕
= =−𝟏 𝒁
𝟕 𝟕
17 = 62 + 5.
If we subtract 27 from 14, we will get a negative answer, i.e., -13. On that case, we must
find x so that -13 x mod 5. Thus we must find x so that the value of is an integer. Trying the
whole number values of x less than 5, the modulus, i.e. x = 0, 1, 2, 3, and 4, then;
We need to find the product of 15 and 23. The product is 345. This
product must be divided by the modulus, 11 to be able to find its remainder.
345 = 1131 + 4
Hence, (1523)mod 11 = 4
Recall that if the sum of two numbers is zero (0),i.e. a + (-a) = 0, then the
numbers are additive inverses of each other. For instance, 5 + (-5) = 0. So 5 is the
additive invers of -5 and -5 is the additive inverse of 5.
(3 + 5) 0 mod 8.
Solution:
Solution:
Example: Solve 3x + 5 3 mod 4. Here, we need to search for whole number values of x for which
the congruence is true.
Solution:
3x + 5 3 mod 4 “if x is less than the modulus”
3x = 2x + 4 (mod 9)
− 2x = − 2x + (mod 9)
x= 4 (mod 9)
x = 4(mod 9)
a) (13 + x) = 3mod 16 ; x =
Complete the table. Suppose that n = 7. Filled out the table on Z7 = {0,1,2,3,4,5,6}
+ 0 1 2 3 4 5 6
0 0 1 2 3 4 5 6
1
2 0
3
4
5 3
6 5
Complete the table. Suppose that n = 7. Filled out the table on Z7 = {0,1,2,3,4,5,6}
x 0 1 2 3 4 5 6
0
1
2
3
4 4 1 2
5 1
6