Assignment Week 8
Assignment Week 8
The purpose of this assignment is to assess your understanding of Division algorithm and
modular arithmetic. Through this assignment, you will be able to demonstrate your knowledge
Tasks:
This week you have learned about the concepts of Division algorithm and modular arithmetic.
To demonstrate your understanding of these concepts, please answer the following questions.
Please ensure that you do not use the same examples discussed in the textbooks and resources.
1. Choose a pair of two-digit numbers and find their greatest common divisor. Show the steps.
Solution:
In order to determine the greatest common divisor for a pair of two positive integers (a, b),
follow the steps listed below:
Write the factor of positive integer “a”.
Write the factor of positive integer “b”.
Identify the common divisor of “a” and “b”.
Find the divisor that is the largest among the common divisors of “a” and “b”.
Let’s find the GCD of (12, 24) as follows:
Factor of 12 =1, 2, 3, 4, 6, and 12
Factor of 24= 1, 2, 3, 4, 6, 8, 12, and 24
Common factor of 12 and 24= 1, 2, 3, 4, 6, and 12
GCD(12, 24)= 12
2. Choose any one modular arithmetic operation (addition modulo or multiplication
modulo n X ) from the set of positive integers ℤ (for example, ℤ5= {0,1,2,3,4} do not use the
same example with your choice of n. Find the identities and inverses of all elements with respect
to the operation you choose. If they do not exist, explain why. You can use an operation table to
Solution:
Let Z 6={ 0 , 1 ,2 , 3 , 4 , 5 } .
⊕6 0 1 2 3 4 5
0 0 1 2 3 4 5
1 1 2 3 4 5 0
2 2 3 4 5 0 1
3 3 4 5 0 1 2
4 4 5 0 1 2 3
5 5 0 1 2 3 4
The identity element is zero. The inverse of 0 and 3 is itself. The inverse of 1 is 5, inverse of 2 is 4,
inverse of 4 is 2, and the inverse of 5 is 1.
3. Find and explain solution for the equation x2+ 5x +1 = 0 in ℤ3, the integers modulo 3.