Skip to main content

Section Exam 1 Study Guide

Exam 1 will cover all the material from the start of the course, through the end of chapter 1. That means primarily logic and proofs, including mathematical statements, implications, quantifiers, truth tables, styles of proof, and proofs about discrete structures.
More specifically the exam will assess your level of understanding on the first four learning targets:
  1. I can use truth tables to determine the logical relationships between statements.
  2. I can prove simple mathematical statements using direct, contrapositive, and contradiction proofs.
  3. I can interpret implications and quantifiers to inform my mathematical reasoning.
  4. I can apply proof techniques and definitions to prove facts about various discrete structures.
There will be a page of questions for each of these targets. The questions below would all make fine exam questions, although some of them mix multiple learning targets. On the exam, questions will be clearly marked with their learning targets.

Worksheet Sample Questions

1. LP 1.

Consider the statement \(\neg P \imp (Q \land R)\text{.}\)

(b)

Suppose you know that the statement β€œif Peter is not tall, then Quincy is fat and Robert is skinny” is false. What, if anything, can you conclude about Peter and Robert if you know that Quincy is indeed fat? Explain (you should reference the previous part).

2. LP 1.

Are the statement \(P \imp (Q \vee R)\) and \((P \imp Q) \vee (P \imp R)\) logically equivalent? Explain your answer.

3. LP 1.

Is the following a valid deduction rule? Explain.
\(P \imp Q\)
\(P\imp R\)
\(\therefore\) \(P \imp (Q \wedge R)\text{.}\)

4. LP 2.

Suppose you break your piggy bank and scoop up a handful of 22 coins (pennies, nickels, dimes and quarters).

(a)

Prove that you must have at least 6 coins of a single denomination.

(b)

Suppose you have an odd number of pennies. Prove that you must have an odd number of at least one of the other types of coins.

(c)

How many coins would you need to scoop up to be sure that you either had 4 coins that were all the same or 4 coins that were all different? Prove your answer.

5. LP 2.

Suppose you wanted to prove that every \(3\)-connected graph is Hamiltonian. Even though you (probably) don’t know what these mean, you should be able to describe the logical β€œskeleton” of the proof. How would you start and end a proof if you gave a \ldots

6. LP 3.

In fact, the previous claim in LP 2 about the connection between \(3\)-connected graphs and Hamiltonian graphs is false. What would it take to prove this? Explain using symbolic logic, paying special attention to quantifiers.

7. LP 3.

Consider the statement: \(\forall x \exists y (x \ne y \imp (P(x,y) \lor P(y,x)))\text{.}\)

(a)

Write the negation of the statement (and simplify as much as possible).

(b)

Suppose \(P(x,y)\) is interpreted to mean, β€œ\(x\) is a multiple of \(y\text{.}\)” Is the (original) statement true? Assume the domain of discourse is the set of positive integers. Explain.

(c)

What happens if we change the first implication to a conjunction (β€œand”)? Is the statement true? Prove your answer.

(d)

For either of the two versions of the statement, would they be true no matter what \(P(x,y)\) means and no matter what the domain of discourse is? That is, is either statement a law of logic? Explain.

8. LP 3.

Let \(P(n)\) be the predicate β€œ\(n\) is prime” and \(O(n)\) be the predicate β€œ\(n\) is odd”.
Consider the statement, β€œAll prime number are odd.”

(b)

How would you write the negation of the original statement? That is, if you wanted to claim that the original statement was false, how would you write that?
  1. \(\displaystyle \forall n (P(n) \imp \neg O(n))\)
  2. \(\displaystyle \exists n (P(n) \ne O(n))\)
  3. \(\displaystyle \exists n (P(n) \land \neg O(n))\)
  4. \(\displaystyle \exists n (\neg P(n) \lor \neg O(n))\)

(c)

Let \(n = 6\text{.}\) Which of the following statements are true and which are false?
  1. \(\displaystyle P(n) \imp O(n)\)
  2. \(\displaystyle P(n) \land O(n)\)
  3. \(\displaystyle P(n) \imp \neg O(n)\)
  4. \(\displaystyle P(n) \land \neg O(n)\)
Can you use any of these statements (with \(n = 6\)) to prove the original statement or prove its negation?

(d)

Let \(n = 2\text{.}\) Which of the following statements are true and which are false?
  1. \(\displaystyle P(n) \imp O(n)\)
  2. \(\displaystyle P(n) \land O(n)\)
  3. \(\displaystyle P(n) \imp \neg O(n)\)
  4. \(\displaystyle P(n) \land \neg O(n)\)
Can you use any of these statements (with \(n = 2\)) to prove the original statement or prove its negation?

9. LP 4.

Here is a definition about a discrete structure: say that a sequence of integers is increasing if for all \(i\text{,}\) \(a_i \lt a_{i+1}\text{.}\) Prove that if \((a_i)_{i \in \N}\) is increasing, and \(a_{0} = 7\text{,}\) then \(a_3 \ge 10\text{.}\)

10. LP 4.

Here is a definition about a discrete structure: call a function \(f: A \to B\) a surjection provided for all \(b \in B\) there is some \(a \in A\) such that \(f(a) = b\text{.}\) Prove that if \(f: A \to B\) and \(g: B \to C\) are surjections, then \(g \circ f: A \to C\) is also a surjection. (Here \(g \circ f\) is the composition function, defined by \((g \circ f)(a) = g(f(a))\text{.}\))

11. LP 4.

Here is a definition about a discrete structure: We say a relation \(R\) on a set \(A\) is symmetric provided for all \(a,b \in A\text{,}\) if \(R(a,b)\) then \(R(b,a)\text{.}\)

(a)

Suppose \(A = \{1,2,3,4\}\) and let \(R(x,y)\) be the relation \(\mid x - y \mid \lt 3\text{.}\) Prove that \(R\) is symmetric. Be careful to state what style of proof you are using.

12. LP 2, 3, and 4.

For any set \(A\text{,}\) the number of elements of \(A\) is written \(\card{A} \text{.}\) Recall that \(A \cup B\) is the union of \(A\) and \(B\text{,}\) the set containing elements from \(A\) or \(B\) or both.
Consider the statement, β€œFor all sets \(A\) and \(B\text{,}\) if \(\card{A} = \card{B} \) then \(\card{A \cup B} = 2\card{A}\text{.}\)”

(a)

Write the converse and the contrapositive of the statement.

(d)

Consider another statement: β€œFor \(A = \{1,2\}\) and \(B = \{1\}\text{,}\) if \(\card{A} = \card{B} \) then \(|A \cup B| = 2|A|\text{.}\)” Explain why this statement is true, but that does not tell us anything about the truth of the original statement or its converse.

Solutions Solutions

Sample Questions

1. LP 1.
Consider the statement \(\neg P \imp (Q \land R)\text{.}\)
1.a
Complete a truth table for the statement.
Solution.
\(P\) \(Q\) \(R\) \(\neg P \imp (Q \wedge R)\)
T T T T
T T F T
T F T T
T F F T
F T T T
F T F F
F F T F
F F F F
1.b
Suppose you know that the statement β€œif Peter is not tall, then Quincy is fat and Robert is skinny” is false. What, if anything, can you conclude about Peter and Robert if you know that Quincy is indeed fat? Explain (you should reference the previous part).
Solution.
Peter is not tall and Robert is not skinny. You must be in row 6 in the truth table above.
2. LP 1.
Are the statement \(P \imp (Q \vee R)\) and \((P \imp Q) \vee (P \imp R)\) logically equivalent? Explain your answer.
Solution.
Yes. To see this, make a truth table for each statement and compare.
3. LP 1.
Is the following a valid deduction rule? Explain.
\(P \imp Q\)
\(P\imp R\)
\(\therefore\) \(P \imp (Q \wedge R)\text{.}\)
Solution.
Make a truth table that includes all three statements in the argument:
\(P\) \(Q\) \(R\) \(P \imp Q\) \(P \imp R\) \(P \imp (Q \wedge R)\)
T T T T T T
T T F T F F
T F T F T F
T F F F F F
F T T T T T
F T F T T T
F F T T T T
F F F T T T
Notice that in every row for which both \(P \imp Q\) and \(P \imp R\) is true, so is \(P \imp (Q \wedge R)\text{.}\) Therefore, whenever the premises of the argument are true, so is the conclusion. In other words, the deduction rule is valid.
4. LP 2.
Suppose you break your piggy bank and scoop up a handful of 22 coins (pennies, nickels, dimes and quarters).
4.a
Prove that you must have at least 6 coins of a single denomination.
Solution.
Suppose you only had 5 coins of each denomination. This means you have 5 pennies, 5 nickels, 5 dimes and 5 quarters. This is a total of 20 coins. But you have more than 20 coins, so you must have more than 5 of at least one type.
4.b
Suppose you have an odd number of pennies. Prove that you must have an odd number of at least one of the other types of coins.
Solution.
Suppose you have 22 coins, including \(2 k\) nickels, \(2 j\) dimes, and \(2 l\) quarters (so an even number of each of these three types of coins). The number of pennies you have will then be
\begin{equation*} 22 - 2 k - 2 j - 2 l = 2 (11 - k - j - l) \end{equation*}
But this says that the number of pennies is also even (it is 2 times an integer). Thus we have established the contrapositive of the statement, β€œIf you have an odd number of pennies then you have an odd number of at least one other coin type.”
4.c
How many coins would you need to scoop up to be sure that you either had 4 coins that were all the same or 4 coins that were all different? Prove your answer.
Solution.
You need 10 coins. You could have 3 pennies, 3 nickels, and 3 dimes. The 10th coin must either be a quarter, giving you 4 coins that are all different, or else a 4th penny, nickel or dime. To prove this, assume you don’t have 4 coins that are all the same or all different. In particular, this says that you only have 3 coin types, and each of those types can only contain 3 coins, for a total of 9 coins, which is less than 10.
5. LP 2.
Suppose you wanted to prove that every \(3\)-connected graph is Hamiltonian. Even though you (probably) don’t know what these mean, you should be able to describe the logical β€œskeleton” of the proof. How would you start and end a proof if you gave a \ldots
5.a
Direct proof.
Solution.
Let \(G\) be an arbitrary graph. Assume \(G\) is \(3\)-connected. Etc, etc etc. Therefore \(G\) is Hamiltonian.
5.b
Proof by contrapositive.
Solution.
Let \(G\) be an arbitrary graph. Assume \(G\) is not Hamiltonian. Etc, etc, etc. Therefore \(G\) is not 3-connected.
5.c
Proof by contradiction.
Solution.
Let \(G\) be an arbitrary graph. Assume \(G\) is 3-connected and also not Hamiltonian. Etc, etc, etc. This is a contradiction.
6. LP 3.
In fact, the previous claim in LP 2 about the connection between \(3\)-connected graphs and Hamiltonian graphs is false. What would it take to prove this? Explain using symbolic logic, paying special attention to quantifiers.
Solution.
All you would need to do is to produce a graph which is both \(3\)-connected and NOT Hamiltonian. This is because the negation of \(\forall G (P(G) \imp Q(G))\) is \(\exists G (P(G) \wedge \neg Q(G))\text{.}\)
7. LP 3.
Consider the statement: \(\forall x \exists y (x \ne y \imp (P(x,y) \lor P(y,x)))\text{.}\)
7.a
Write the negation of the statement (and simplify as much as possible).
Solution.
The negation is \(\exists x \forall y (x \ne y \wedge \neg P(x,y) \wedge \neg P(y,x))\text{.}\)
7.b
Suppose \(P(x,y)\) is interpreted to mean, β€œ\(x\) is a multiple of \(y\text{.}\)” Is the (original) statement true? Assume the domain of discourse is the set of positive integers. Explain.
Solution.
This is a true statement, but for a rather silly reason. In fact, if you look at the negation, it is claiming that there is some positive integer that is not equal to any positive integer. But every integer is equal to itself.
7.c
What happens if we change the first implication to a conjunction (β€œand”)? Is the statement true? Prove your answer.
Solution.
This makes a lot more sense. It is claiming that for every positive integers, there is some different integer that is either a multiple of it or it is a multiple of. In fact, we can prove this is true as follows: Let \(x\) be a positive integer. Pick \(y = 2 x\text{.}\) Then \(x \ne y\) and \(y\) is a multiple of \(x\) (so \(P(y,x)\) is true).
7.d
For either of the two versions of the statement, would they be true no matter what \(P(x,y)\) means and no matter what the domain of discourse is? That is, is either statement a law of logic? Explain.
Solution.
The original statement is true always, under any domain of discourse and any interpretation of \(P(x,y)\text{.}\) This is because we can always just let \(x = y\text{.}\) The second statement is not always true. For example, our domain of discourse could contain only a single number. Or, we could take the domain of discourse to be all positive integers but let \(P(x,y)\) mean \(x = y\text{.}\)
Another way to say this: the original statement is a law of logic, but the second statement is not.
8. LP 3.
Let \(P(n)\) be the predicate β€œ\(n\) is prime” and \(O(n)\) be the predicate β€œ\(n\) is odd”.
Consider the statement, β€œAll prime number are odd.”
8.a
Which of the following is how you would write the statement in logical symbols?
  1. \(\displaystyle \forall n (P(n) \land O(n))\)
  2. \(\displaystyle \forall n (P(n) \imp O(n))\)
  3. \(\displaystyle \forall n (P(n) = O(n))\)
  4. \(\displaystyle \exists n (P(n) \imp O(n))\)
Briefly explain.
Solution.
Claiming that all prime numbers are odd is the same as claiming that for all number, if the number is prime, then the number is odd. So you would write this as \(\forall n (P(n) \imp O(n))\text{.}\)
8.b
How would you write the negation of the original statement? That is, if you wanted to claim that the original statement was false, how would you write that?
  1. \(\displaystyle \forall n (P(n) \imp \neg O(n))\)
  2. \(\displaystyle \exists n (P(n) \ne O(n))\)
  3. \(\displaystyle \exists n (P(n) \land \neg O(n))\)
  4. \(\displaystyle \exists n (\neg P(n) \lor \neg O(n))\)
Solution.
To say that not all primes are odd means that some primes are not odd. This is written \(\exists n (P(n) \land \neg O(n))\text{.}\) This makes sense since the negation of an implication \(P \imp Q\) is the conjunction \(P \land \neg Q\text{.}\)
8.c
Let \(n = 6\text{.}\) Which of the following statements are true and which are false?
  1. \(\displaystyle P(n) \imp O(n)\)
  2. \(\displaystyle P(n) \land O(n)\)
  3. \(\displaystyle P(n) \imp \neg O(n)\)
  4. \(\displaystyle P(n) \land \neg O(n)\)
Can you use any of these statements (with \(n = 6\)) to prove the original statement or prove its negation?
Solution.
We have that \(P(6)\) is false and \(O(6)\) is false. This makes \(P(6) \imp O(6)\) true, \(P(6) \land O(6)\) false, \(P(6) \imp \neg O(6)\) true, and \(P(6) \land \neg O(6)\) false.
No matter what, you cannot prove a universal statement true with one example. To prove the negation, we would need to find an \(n\) for which \(P(n) \land \neg O(n)\) was true, and 6 is not such an \(n\text{,}\) so this doesn’t prove anything.
8.d
Let \(n = 2\text{.}\) Which of the following statements are true and which are false?
  1. \(\displaystyle P(n) \imp O(n)\)
  2. \(\displaystyle P(n) \land O(n)\)
  3. \(\displaystyle P(n) \imp \neg O(n)\)
  4. \(\displaystyle P(n) \land \neg O(n)\)
Can you use any of these statements (with \(n = 2\)) to prove the original statement or prove its negation?
Solution.
We have that \(P(2)\) is true and \(O(2)\) is false. This makes \(P(2) \imp O(2)\) false, \(P(2) \land O(2)\) false, \(P(2) \imp \neg O(2)\) true, and \(P(2) \land \neg O(2)\) true.
This does prove the negation, since the negation is an existential statement. To prove it, we only need to find one \(n\) that makes the negation true; an \(n\) for which \(P(n) \land \neg O(n)\) is true, and 2 is such an \(n\text{.}\) Note also that \(P(2) \imp O(2)\) is false, so it is not true that \(P(n) \imp O(n)\) is true for all \(n\)
9. LP 4.
Here is a definition about a discrete structure: say that a sequence of integers is increasing if for all \(i\text{,}\) \(a_i \lt a_{i+1}\text{.}\) Prove that if \((a_i)_{i \in \N}\) is increasing, and \(a_{0} = 7\text{,}\) then \(a_3 \ge 10\text{.}\)
Solution.
We prove this by contradiction. Suppose that \(a_{3} \lt 10\text{.}\) Since the sequence is increasing, this means that \(a_{2} \lt a_{3} \lt 10\text{,}\) so \(a_{2} \lt 9\text{.}\) But then \(a_{1} \lt a_{2} \lt 9\text{,}\) so \(a_{1} \lt 8\text{.}\) Finally, \(a_{0} \lt a_{1} \lt 8\text{,}\) so \(a_{0} \lt 7\text{.}\) But this contradicts the fact that \(a_{0} = 7\text{.}\) Therefore, \(a_3 \ge 10\text{.}\)
10. LP 4.
Here is a definition about a discrete structure: call a function \(f: A \to B\) a surjection provided for all \(b \in B\) there is some \(a \in A\) such that \(f(a) = b\text{.}\) Prove that if \(f: A \to B\) and \(g: B \to C\) are surjections, then \(g \circ f: A \to C\) is also a surjection. (Here \(g \circ f\) is the composition function, defined by \((g \circ f)(a) = g(f(a))\text{.}\))
Solution.
Let \(c \in C\text{.}\) Since \(g\) is a surjection, there is some \(b \in B\) such that \(g(b) = c\text{.}\) Since \(f\) is a surjection, there is some \(a \in A\) such that \(f(a) = b\text{.}\) Therefore, \((g \circ f)(a) = g(f(a)) = g(b) = c\text{.}\) Since \(c\) was an arbitrary element of \(C\text{,}\) this shows that \(g \circ f\) is a surjection.
11. LP 4.
Here is a definition about a discrete structure: We say a relation \(R\) on a set \(A\) is symmetric provided for all \(a,b \in A\text{,}\) if \(R(a,b)\) then \(R(b,a)\text{.}\)
11.a
Suppose \(A = \{1,2,3,4\}\) and let \(R(x,y)\) be the relation \(\mid x - y \mid \lt 3\text{.}\) Prove that \(R\) is symmetric. Be careful to state what style of proof you are using.
Solution.
We will use a direct proof. Let \(a,b \in A\) and suppose \(R(a,b)\text{.}\) Then \(\mid a - b \mid \lt 3\text{.}\) This means that \(a\) and \(b\) are less than 3 apart, so are not \(a = 1\) and \(b = 4\text{.}\) But then \(b\) and \(a\) are less than 3 apart. Put another way, we have \(\mid b - a \mid = \mid -(a - b) \mid = \mid a - b \mid \lt 3\text{,}\) so \(R(b,a)\text{.}\) Since \(a\) and \(b\) were arbitrary, this shows that \(R\) is symmetric.
11.b
Give an example of a relation that is not symmetric.
Solution.
If we take any domain of discourse with at least two elements and let \(R(x,y)\) be the relation \(x \lt y\text{,}\) then \(R\) is not symmetric. For example, \(1 \lt 2\) but \(2 \not \lt 1\text{.}\)
12. LP 2, 3, and 4.
For any set \(A\text{,}\) the number of elements of \(A\) is written \(\card{A} \text{.}\) Recall that \(A \cup B\) is the union of \(A\) and \(B\text{,}\) the set containing elements from \(A\) or \(B\) or both.
Consider the statement, β€œFor all sets \(A\) and \(B\text{,}\) if \(\card{A} = \card{B} \) then \(\card{A \cup B} = 2\card{A}\text{.}\)”
12.a
Write the converse and the contrapositive of the statement.
Solution.
The converse: For all sets \(A\) and \(B\text{,}\) if \(\card{A \cup B} = 2\card{A}\text{,}\) then \(\card{A} = \card{B} \text{.}\)
The contrapositive: For all sets \(A\) and \(B\text{,}\) if \(|A \cup B| \ne 2|A|\) then \(|A| \ne |B|\text{.}\)
12.b
Is the original statement true? Explain.
Solution.
The original statement is false. That means that there \emph{exists} sets \(A\) and \(B\) such that \(\card{A} = \card{B} \) but \(\card{A \cup B} \ne 2\card{A}\text{.}\) We can prove this by giving an example of such sets: \(A = \{1,2\}\) and \(B= \{2,3\}\text{.}\) These sets have the same cardinality, but \(A \cup B = \{1,2,3\}\) has cardinality 3, not 4.
12.c
Is the converse of the original statement true? Explain.
Solution.
The converse is false as well. Take \(A = \{1,2\}\) and \(B = \{2,3,4\}\text{.}\) Now we have \(|A \cup B| = 4 = 2|A|\) but \(\card{A} = 2\) and \(\card{B} = 3\text{.}\)
12.d
Consider another statement: β€œFor \(A = \{1,2\}\) and \(B = \{1\}\text{,}\) if \(\card{A} = \card{B} \) then \(|A \cup B| = 2|A|\text{.}\)” Explain why this statement is true, but that does not tell us anything about the truth of the original statement or its converse.
Solution.
The new statement is about specific sets. For these sets, \(|A| \ne |B|\text{,}\) so the hypothesis of the implication is false. That makes the entire statement true automatically (even though the conclusion is false). This one example does not prove that the original implication is true (after all, it is not). It also cannot prove that the original statement is false, as it is not a counterexample.