Name: __________________________________________________________
Umail Address: __________________________@ umail.ucsb.edu
Please write your name only on this page. That allows me to grade your exams without knowing whose exam I am grading.
This exam is closed book, closed notes, closed mouth, cell phone off,
except for:
There are 100 points worth of questions on the exam, and you have 50 minutes to complete the exam.
A hint for allocating your time:


(20 pts) Euclid's algorithm for finding the gcd of two integers is based, in part, on this lemma:
If a and b are integers with a > b, and we divide b into a giving: a = bq + r
then if some integer divides both a and b, it must divide r also.
Prove this. Start by clearly stating what you are given, and what you are proving.
As a reminder, the definition of x divides y, written x | y is as follows:
When x and y are both integers, x≠0, x | y ↔ (∃k ∈ Z)(y=kx) There were four perfect papers here. I'll scan a couple and post them.
Here's the full range:
-0,-0,-0,-0,-2, -3, -4, -4, -5, -10, -10, -13, -15. This isn't what I would have hoped for, but falls within the range of reasonable responses; the median grade is an 80%, or a B.
So we aren't going to belabor this topic, or offer any second chances. However, if you got more than 4 points off here, you should come to my office hours. Soon! We can go over your answer, and also make sure you are prepared for the final, and any upcoming quizzes.
When x and y are both integers, x≠0, x | y ↔ (∃k ∈ Z)(y=kx) Thus, divides is a binary relation on Z, the set of all integers.
Consider the following silly statement:
| If x is a foo, then x can ride a skateboard. |
(6 pts) Suppose you were going to use "proof by contrapositive" to prove this statement.
Describe what you would assume and what you would try to show.
(That's all you have to do—I'm not asking for a full proof)
What you would assume:
x cannot ride a skateboard
What you would try to show:
x is not a foo
9/13 got this correct. Some wrong answers:
Consider these definitions:
|
Come up with similar definitions for each of these by filling in the blank:
| p | q | p→q | ¬ (p→q) | ¬ p | q | (¬p ∧ q) | ¬(¬p ∧ q) |
| T | T | T | F | F | T | F | T |
| T | F | F | T | F | F | F | T |
| F | T | T | F | T | T | T | F |
| F | F | T | F | T | F | F | T |
Total points: ?