

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!


Math 116
First Midterm Examination
February 18, 2010
11:10AM–12:30 PM, 3109 Etcheverry Hall
Please put away all books, calculators, and other portable electronic devices—anything with an ON/OFF switch. You may refer to a single 2-sided sheet of notes. For numerical ques- tions, show your work but do not worry about simplifying answers. For proofs, write your arguments in complete sentences that explain what you are doing. Remember that your paper becomes your only representative after the exam is over.
Problem Your score Possible points 1 7 points
2 6 points 3 7 points 4 5 points
5 5 points Total: 30 points
The gcd is 3 = 7 · 255 − 6 · 297.
b. For which pairs of integers (a, b) is it possible to find an integer x such that
x ≡
a mod 255, b mod 297?
For example, can we find an x when a = 4, b = 11?
If x satisfies the two congruences, then 3 divides x − a and also x − b, since 3 divides both 255 and 297. Hence 3 divides a − b, which means that we have a ≡ b mod 3. In particular, there can be no x when a = 4 and b = 11.
Conversely, suppose that a ≡ b mod 3. Then we can find an x that satisfies the two congruences, namely
x = a + (7 · 255)
b − a 3
. To see that this works, we can note that x is visibly of the form a + a multiple of 255,
so that x is a mod 255. Further, 7 · 255 ≡ 3 mod 297. Hence mod 297 we clearly have x ≡ a + (b − a) = b.
The possible orders are the positive divisors of p − 1, namely: 1, 2, 3, 17, 2 · 3, 2 · 17, 3 · 17 and p − 1. For each divisor d of p − 1, the number of elements of order d is ϕ(d), where ϕ is the Euler phi function. These ϕ-values are respectively 1, 1, 2, 16, 2, 16, 32 and 32. The sum of these eight numbers is 102 = p − 1, as we’d expect. (Each element has exactly one order!) 1
Since p = 103 is 3 mod 4, a square root is 19(p+1)/^4 = 19^26. I am told that the value of this expression is 15 mod p. This makes sense because 15^2 = 225 is 19 + 206 = 19 + 2 · 103.
b. How many elements of (Z/ 255 Z)∗^ have square equal to 1? List three of these elements.
We saw above that 255 is divisible by 3, and it’s clearly divisible by 5. It’s 3 · 5 · 17. Because 255 is the product of three distinct odd primes, there are 2^3 = 8 square roots of 1 mod 255. Of course, 1 and −1 are square roots of 1 mod 255. To get a third square root of 1, we need to exhibit an “exotic” square root of 1. One way to do this is to look for a number that’s 1 mod 5 · 17 = 85 and −1 mod 3. We don’t have to look very far: 86 does the trick. You can check that 86^2 − 1 is divisible by 255; it’s 255 · 29, in fact.
i mod 144169 for i = 0,... , 10. How would you compute 5^821 mod 144169 in terms of those values? (Write an explicit formula.) If you write 821
as a sum of powers of 2, then 5^821 gets written as a product of terms of the form 5^2
i
. (Thinking in this way leads you to the “fast-powering algorithm.”) The binary expansion of 821 is 1100110101, which means that 821 = 512 + 256 + 32 + 16 + 4 + 1....
a. What number should Bob send to Alice? (Write a formula — don’t try to compute an explicit value.)
Bob sends Alice the value B = 2b.
b. What computation does Bob perform to obtain the secret value that he and Alice will share?
He computes Ab^ = 2ab, where a is Alice’s secret value. Alice obtains the same number by computing Ba. Too bad for Eve.
2