



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!




PRINT your name: , (last) (first)
SIGN your name:
PRINT your username on cory.eecs:
WRITE your section number (101 or 102):
This exam is open-book, open-notes. No calculators are permitted. Do all your work on the pages of this examination. If you need more space, you may use the reverse side of the page, but try to use the reverse of the same page where the problem is stated.
You have 80 minutes. There are 4 questions, worth 25 points each (100 points total). The questions are of varying difficulty, so avoid spending too long on any one question.
Do not turn this page until the instructor tells you to do so.
Circle TRUE or FALSE. You do not need to justify your answers on this problem.
N denotes the set of natural numbers, { 0 , 1 , 2 ,.. .}. Z denotes the integers, {... , โ 2 , โ 1 , 0 , 1 , 2 ,.. .}.
(a) TRUE or FALSE: If the implication P =โ Q is true, then its converse is guaranteed to be true, too.
(b) TRUE or FALSE: โ w โ Z. โ x โ Z. โ y โ Z. โ z โ Z. w + x = y + z.
(c) TRUE or FALSE: โ x โ N. โ p โ Z. p > 5 =โ x^2 โก 1 (mod p ).
(d) TRUE or FALSE: โ p โ Z. p > 5 =โ โ x โ N. x^2 โก 1 (mod p ).
(e) TRUE or FALSE: If m is any natural number satisfying m โก 1 (mod 2), then the equation 2048 x โก 1 (mod m ) is guaranteed to have a solution for x.
Definition: A 2-party cake-cutting protocol is called equalizing if it satisfies the following property: If a denotes the worth (by Aliceโs measure) of the piece Alice receives, and b denotes the worth (by Bobโs measure) of the piece Bob receives, then a = b.
(a) TRUE or FALSE: Every envy-free 2-party cake-cutting protocol is equalizing.
(b) Prove your answer to part (a).
(c) Prove the following: If x is positive and irrational, then
x is irrational, too.
Let { 0 , 1 }โ^ denote the set of all binary strings. Write y ยท z for the concatenation of the strings y and z.
Prove that every string x โ { 0 , 1 }โ^ can be written in the form x = y ยท z where the number of 0โs in y is the same as the number of 1โs in z. Empty strings are allowed.
(For instance, 01001 can be split as 01 ยท 001; 111011 = 11101 ยท 1; and 00000 = ยท00000.)
Hint: It is possible to prove this using strong induction over N.