Docsity

Math 116: First Midterm Examination Solutions - Prof. K. A. Ribet, Exams of Mathematics

Toggle sidebar
bg1
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
1. a. Find the greatest common divisor of 255 and 297. Write this gcd as an integral linear combination
t·255 + u·297.
The gcd is 3 = 7 ·255 −6·297.
b. For which pairs of integers (a, b) is it possible to find an integer xsuch that
x≡(amod 255,
bmod 297?
For example, can we find an xwhen a= 4, b= 11?
If xsatisfies the two congruences, then 3 divides x−aand also x−b, since 3 divides both 255 and 297.
Hence 3 divides a−b, which means that we have a≡bmod 3. In particular, there can be no xwhen a= 4
and b= 11.
Conversely, suppose that a≡bmod 3. Then we can find an xthat satisfies the two congruences, namely
x=a+ (7 ·255)b−a
3. To see that this works, we can note that xis visibly of the form a+ a multiple of 255,
so that xis amod 255. Further, 7 ·255 ≡3 mod 297. Hence mod 297 we clearly have x≡a+ (b−a) = b.
2. Let pbe the prime number 103; note that p−1 factors as 2 ·3·17. What numbers occur as orders of
elements of the group F∗
p? How many elements of F∗
pare there of each order?
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 dof p−1, the number of elements of order dis ϕ(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
pf2

Partial preview of the text

Download Math 116: First Midterm Examination Solutions - Prof. K. A. Ribet and more Exams Mathematics in PDF only on Docsity!

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

  1. a. Find the greatest common divisor of 255 and 297. Write this gcd as an integral linear combination t · 255 + u · 297.

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.

  1. Let p be the prime number 103; note that p − 1 factors as 2 · 3 · 17. What numbers occur as orders of elements of the group F∗ p? How many elements of F∗ p are there of each order?

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

  1. a. Find a square root of 19 mod 103. (No need to simplify your answer.)

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.

  1. Suppose that someone furnishes you with a table of the values of 5^2

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....

  1. Bob and Alice agree to communicate with each other using a Diffie–Hellman key exchange. They select the prime number p = 1237 and the generator g = 2. Bob chooses his secret integer b and receives from Alice the value A.

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