1)
True
False
False
Ture
False
2)
Answer : 17
gcd(424762, 28101)
Step 1: a = b % a = 424762 % 28101
b = 424762
Step 2:
a = b % a = 424762 % 28101 = 3247
b = 28101
Step 3:
a = b % a = 28101 % 3247 = 2125
b = 3247
Step 4:
a = b % a = 3247 % 2125 = 1122
b = 2125
Step 5:
a = b % a = 2125 % 1122 = 1003
b = 1122
Step 6:
a = b % a = 1122 % 1003 = 119
b = 1003
Step 7:
a = b % a = 1003 % 119 = 51
b = 119
Step 8:
a = b % a = 119 % 51 = 17
b = 51
Step 9:
a = b % a = 51 % 17 = 0
b = 17
Remainder is 0, then the answer will be 17
3)
1800 = 5 x 5 x 3 x 3 x 2 x 2 x 2
1. Are the following expressions true or false? 2550 (mod 5) 3353 (mod 11) 1856 (mod...
Evaluate the Boolean expressions to determine if they are TRUE or FALSE. (5 % 3 == 9 / 4) ____________________ (3 <= 3) ____________________ (15 > 10) ____________________ ( (6 + 0.5) > (34 / 5) ) ____________________ ( 8 != 8 / 10) ____________________ (8 > 4 && 3 < 2) ____________________ (5 <= 3 || 4 > -23)
We know that we can reduce the base of an exponent modulo m: a(a mod m)k (mod m). But the same is not true of the exponent itself! That is, we cannot write aa mod m (mod m). This is easily seen to be false in general. Consider, for instance, that 210 mod 3 1 but 210 mod 3 mod 3 21 mod 3-2. The correct law for the exponent is more subtle. We will prove it in steps (a)...
9. Use the construction in the proof of the Chinese remainder theorem to find a solution to the system of congruences X 1 mod 2 x 2 mod 3 x 3 mod 5 x 4 mod 11 10. Use Fermats little theorem to find 712 mod 13 11. What sequence of pseudorandom numbers is generated using the linear congruential generator Xn+1 (4xn + 1) mod 7 with seed xo 3? 9. Use the construction in the proof of the Chinese...
Write a program in Python implement the RSA algorithm for cryptography. Set up: 1.Choose two large primes, p and q. (There are a number of sites on-line where you can find large primes.) 2.Compute n = p * q, and Φ = (p-1)(q-1). 3.Select an integer e, with 1 < e < Φ , gcd(e, Φ) = 1. 4.Compute the integer d, 1 < d < Φ such that ed ≡ 1 (mod Φ). The numbers e and d are...
Elucidean Algorithm. Q 4. For each of the following equations, find a solution z Z or prove that no solution z E Z exists (a) 7x 13 mod 83 mod 624; 11 (b) 25x + 3 (c) 36r 1 mod 87. 12 marks In all cases, explain your reasoning. Q 4. For each of the following equations, find a solution z Z or prove that no solution z E Z exists (a) 7x 13 mod 83 mod 624; 11 (b)...
3) Out of the following, name which kind of attack you carried out in part 1 and part2: a. ciphertext only, b. known plaintext, c. chosen plaintext, d. chosen ciphertext. Explain your answer Problem 3 10 points] A 4-bit long message was encrypted using one-time pad to yield a cipher-text “1010” Assuming the message space consists of all 4-bit long messages, what is the probability that the corresponding plaintext was “1001”? Explain your answer. Problem 4 Assume we perform a...
Using the Quine-McCluskey method, find all minimum product of sums expressions for the following function: 5. AA, B, C, D)- m(0, 1, 2, 3, 4, 8, 9, 10, 11, 19, 21, 22, 23,27,28, 29, 30) Using the Quine-McCluskey method, find all minimum product of sums expressions for the following function: 5. AA, B, C, D)- m(0, 1, 2, 3, 4, 8, 9, 10, 11, 19, 21, 22, 23,27,28, 29, 30)
Exercise 8 . Let n = 5-11-12 = 660. (A) Find i < y < n such that 1 mod(5), 3 mod(11), y 11 mod(12). (B) Suppose r E Z such that 4 mod(5) and 8 mod ( (11) Briefly explain why 55 divides +y, where y is the number from Part Show that, for all nEN, Exercise 9. 13 (29" -3")
1 1 point Consider the following algorithm for factoring an integer N provided as input (in binary): For i = 2 to [VN.17 i divides N, then output (i, N/). Which of the following statements is true? This algorithm is correct, but it runs in exponential time. This algorithm is not correct, because it will sometimes fail to find a factorization of Neven if N is composite This algorithm runs in sub-linear time, and always factors N it Nis composite...
11) Determine if the following are true or false. Explain your reasoning Determine if the following are true or false. Explain your reasoning a. {7,4,6,2, 11, 3,5} c{1,2,3,4,5,6,7,8,9, 10, 11, 12, 13} b. {7,4,6,2, 11,3,5} $ {7,4,6, 2, 11,3,5} c. {3n +4|n € N} &Z d. {æ € R||2|< 3} S {x € R||2| <5} e. {x € R||2| > 3} S {x € R||2| > 5}