710 views
2 votes
2 votes

Modular Arithmatic - Network Security chapter

Revise Question 7

 Suppose n = 10,000, a = 10,023, and b = 10,004. Use an identity of modular
arithmetic to calculate in your head (a • b) mod n

 

2 Answers

4 votes
4 votes
(a*b)mod n=(a mod n*b mod n)mod n

a=10023

b=10004

(10023*10004)mod 10000=(10023 mod 10000*10004 mod 10000)mod 10000

                                     =23*4 mod 10000

                                     =92 mod 10000

                                     =92
1 votes
1 votes

a=1023
b=10004
n=10000
Therefore, a mod n = 23 and b mod n = 4.
So (a * b) mod n = 23 * 4 = 92.

Related questions

0 votes
0 votes
1 answer
1
Akash Kanase asked Dec 12, 2015
545 views
R32. Why must an application gateway work in conjunction with a router filter to be effective?
1 votes
1 votes
3 answers
3