

2. Find 5482 mod 17 in two ways: a) By writing the exponent 482 in binary...
2. Use modular arithmetic rules to find out the following: Use the rule: (a*b) mod x -( (a mod x) (b mod x)) modx Find out: (97)49 mod 119 Hints: 49 can be written as: 49-32 16+1 Try finding out 97 mod 119 Then, 972 mod 119, then 974 mod 119 etc.
An exponentiation cipher encodes a message A using a ciphertext C = Ae (mod p) where p is a prime number and e is an integer exponent. (Here A and C are also integers.) You are given integers A, C, e and p, and you would like to determine whether C is a valid ciphertext for message A. (a) Formulate this problem as a language EC. (b) Explain why the following algorithm for EC does not run in polynomial time:...
Please answer question 3
Find all (infinitely many) solutions of the system of congruence's: Use Fermata little theorem to find 8^223 mod 11. (You are not allowed to use modular exponentiation.) Show that if p f a, then a^y-2 is an inverse of a modulo p. Use this observation to compute an inverse 2 modulo 7. What is the decryption function for an affine cipher if the encryption function is 13x + 17 (mod 26)? Encode and then decode the...
Find (i) 2^25 mod 21, (ii) 7^66 mod 120 and (iii) the last two digits of 1 + 7^162 + 5^121 * 3^312
Write a C++ program In this assignment you will complete the definition of two functions that implement the repeated squaring algorithm described in the Stamp textbook on pages 98-99. Note that your implementation should not use the pow() function, the powl() functions, or any other built-in exponentiation functions. program4-driver.cpp - This file contains a completed main() function that serves as the driver to parse the command line, pass the values to the powerModN() function, and print the result. Make no...
For this problem, assume 4 bits precision. Add two binary numbers, 1.110 two x 2 -7 and 1.010 two x 2 -5 by showing the following steps: Step1: The significand of the number with the lesser exponent is shifted right to match the exponent of the larger number. Step2: Add the significands. (you can assume that you can carry all digits) Step3: Normalize the sum, determine whether there is an overflow or an underflow. Step4: Truncate the sum (using 4...
B3 a. Solve for x in this equation: 2x + 11 = 2 (mod 4). b. What are the sets of units and zero divisors in the ring of integers modulo 22? (Specify at least the smaller set using set-roster notation.) c. Find a formula for the quotient and the exact remainder when 534 is divided by 8. Hint: find the remainder first by modular arithmetic. Then subtract the remainder from the power and divide to find the quotient.
Leave your answer(s) in the positive exponent whenever possible. For instance, instead of writing x-2, you should write it in . Remember to also simplify where possible. 5. Find the open intervals on which the graph of the function f(x) = upward or concave downward. X+8 X-7 is concave (8 points)
6.) Find (i) 225 mod 21, (ii) 766 mod 120 and (iii) the last two digits of 1 + 7162 + 5121. 3.12. 6. Find + (iii) the last two digits of 1 + 7162 +5121.3.12 (i) 225 mod 21, (ii) 766 mod 120 Answ ven 6. (i) 225 = 2 mod 21; (ii) 766 = 72 = 49 mod 1 20. (iii) °(100) = 40. So the last two digits of 7162 are 49. Note that, since (5, 100)...
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...