





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






December 17, 2010. Instructor: Z. Reichstein.
This is a closed book exam. You can use one 8.5โ ร 11โ note sheet. No other materials or calculators are allowed. In order to receive credit for a problem you need to show enough work to justify your answer.
Name (Please print):
Student number:
Problem | Score || Problem | Score โ โ โโ โ โ โ โ โ โ โ โ โ โ โ โโ || โ โ โโ โ โ โ โ โ โ โ โ โ โ โ โโ | || | | || | 1 | || 5 | | || | | || | โ โ โโ โ โ โ โ โ โ โ โ โ โ โ โโ || โ โ โโ โ โ โ โ โ โ โ โ โ โ โ โ โ โ | || | | || | 2 | || 6 | | || | | || | โ โ โโ โ โ โ โ โ โ โ โ โ โ โ โโ || โ โ โโ โ โ โ โ โ โ โ โ โ โ โ โโ | || | | || | 3 | || 7 | | || | | || | โ โ โโ โ โ โ โ โ โ โ โ โ โ โ โโ || โ โ โโ โ โ โ โ โ โ โ โ โ โ โ โโ | || | | || | 4 | || 8 | | || | | || | โ โ โโ โ โ โ โ โ โ โ โ โ โ โ โโ || โ โ โโ โ โ โ โ โ โ โ โ โ โ โ โโ
Problem 1 (7 marks). Let n be an integer. Show that there does not exist a prime number p โฅ 2 which divides both 8n + 3 and 5n + 2.
Problem 3 (7 marks). Find all three-digit combinations that can occur as the last three digits of a^100 , where a ranges over the integers. Give a simple criterion for predicting which of these possibilities occurs for a given a, without computing a^100. Prove that your criterion is correct.
Hint: Investigate a^100 modulo 8 and modulo 125 separately, then use the Chinese Re- mainder Theorem.
Problem 4 (6 marks). Suppose a positive integer n has 77 positive divisors (1 and n count among them). How many of these divisors can be primes? Explain your answer.
Problem 6 (6 marks). Recall that an affine cryptosystem, with encryption key KE = (26, a, b) and decryption key KD = (26, c, d) works as follows. Each letter is assigned a numerical value, in alphabetical order: A 7 โ 0, B 7 โ 1, ..., Z 7 โ 25. These numbers are then viewed modulo 26; they are encrypted by the formula
x โโ y โก ax + b (mod 26)
and decrypted by the formula
y โโ x โก cy + d (mod 26).
It is known that the most frequently occurring letter in the English language is E (with numerical value 4) and the second most frequently occurring letter is T (with numerical value 19). Suppose these letters are encoded as F (numerical value 5) and G (numerical value 6), respectively.
(a) Find the encryption key KE. (b) Find the decryption key KD.
Problem 7 (6 marks). Suppose the public key for an RSA cryptosystem is (n, e) = (85, 7) and the secret key is (85, d). Show that this cryptosystem is not secure by finding d.
Remarks: Recall that a message x is encoded by x โโ xe^ (mod n) and a received message y is decoded by y โโ yd^ (mod n). To make this cryptosystem secure, one needs to use a much larger n.