Exam text is in black, solutions in blue.
Corrections in green made 25 September 2015.
Q1: 15 points Q2: 30 points Q3: 25 points Q4: 30 points Total: 100 points
The converse of an implication "p → q" is the implication "q → p". It is not equivalent to the original.
The contrapositive of an implication "p → q" is the implication "¬q → ¬p". It is equivalent to the original.
The existential quantifier ∃ is put before a predicate along with a variable that is free in the predicate. If P(x) is a statement with free variable x, "∃x: P(x)" means "P(x) is true for some x" or "there exists an x such that P(x) is true".
"¬(p ∧ q) ↔ (¬p ∨ ¬q)" and "¬(p ∨ q) ↔ (¬p ∧ ¬q)"
A contradiction is a compound proposition that is false for all possible values of its atomic propositions. Its negation is a tautology.
a6 = -22, a7 = -27, a8 = -32. Recursive: a1 = 3, an+1 = an = 5. Closed form: an = -5n + 8.
b6 = 8, b7 = 15, b8 = 24. Recursive: b1 = 3, bn+1 = bn + 2n - 7. Closed: bn = n2 - 6n + 8. (How to get this? The solution is a quadratic, of the form xn2 + yn + z. You can plug in n = 1 to get x + y + z = 3, n=2 to get 4x + 2y + z = 0, and n = 3 to get 9x + 3y + z = -1. Subtracting the first equation from the others gives 3x + y = -3 and 8x + 2y = -4, from which you can get 6x + 2y = -6 ,2x = 2, x = 1, and y = -2. Then you solve for z in any of the three equations.)
c6 = 34, c7 = 66, c8 = 130. Recursive: c1 = 3, cn+1 = 2cn - 2. Closed: cn = 2n-1 + 2. (How to get this? The solution is going to involve 2n because of the doubling. So look for a similarity with 2, 4, 8, 16, 32, 64, 128, and see that cn is the n-1'st entry of this sequence, plus 2.
p ∧ (q → ¬p)
If Cardie is soft, then there exists a dog larger than Duncan.
∀x: &exists;y: S(x, y) ∧ S(y, d)
Either Cardie is soft, or if Duncan is fierce and Cardie is smaller than Duncan, than all dogs are smaller than Duncan, but not both.
p ∨ ∀x: (x ≠ d) → S(x, d)
Since the second column is all ones, the statement is a tautology.
p --> (q --> p)
0 1 0 1 0
0 1 1 0 0
1 1 0 1 1
1 1 1 1 1
The ↔ operation is applied to the second column and the fifth from last
column.
(p and (q or not r) <--> (p or q) and (not q or p) and (q or not r)
0 0 0 1 1 0 1 0 0 0 0 1 0 1 0 0 0 1 1 0
0 0 0 0 0 1 1 0 0 0 0 1 0 1 0 0 0 0 0 1
0 0 1 1 1 0 1 0 1 1 0 0 1 0 0 0 1 1 1 0
0 0 1 1 0 1 1 0 1 1 0 0 1 0 0 0 1 1 0 1
1 1 0 1 1 0 1 1 1 0 1 1 0 1 1 1 0 1 1 0
1 0 0 0 0 1 1 1 1 0 1 1 0 1 1 0 0 0 0 1
1 1 1 1 1 0 1 1 1 1 1 0 1 1 1 1 1 1 1 0
1 1 1 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 0 1
Last modified 25 September 2015