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)
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. |
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 | |||||
| T | F | F | |||||
| F | T | T | |||||
| F | F | F |
Total points: ?