Review Problems
Review Problems
MATH 240
October 20, 2023
1 Set Theory
Simplify
(((A ∪ B) ∩ C) ∪ B) ∪ C.
Solution. Start with the outermost complement:
(((A ∪ B) ∩ C) ∪ B) ∪ C = (((A ∪ B) ∩ C) ∩ B) ∪ C
= (((A ∩ C) ∪ (B ∩ C)) ∩ B) ∪ C.
Since B ∩ C ⊆ B, we have
(((A ∩ C) ∪ (B ∩ C)) ∩ B) ∪ C = (A ∩ C ∩ B) ∪ C
= C.
2 Propositional Logic
Negate the following statement:
∀x ∈ Z, ∃y ∈ Y (x 6= 0 =⇒ xy = 1).
What is the smallest subset Y ⊆ R such that the above sentence is true?
Solution. First negating,
¬(∀x ∈ Z, ∃y ∈ Y (xy = 1)) ≡ ∃x ∈ Z, ∀y ∈ Y ¬(x 6= 0 =⇒ xy = 1),
and
¬(A =⇒ B) ≡ ¬(¬A ∨ B) ≡ A ∧ ¬B.
Hence,
¬(∀x ∈ Z, ∃y ∈ Y (xy = 1)) ≡ ∃x ∈ Z, ∀y ∈ Y (x 6= 0 ∧ xy 6= 1),
The smallest such Y is the one where every x ∈ Z has an inverse, i.e.
1 1 1 1 1 1
Y = . . . , − , − , − , −1, 1, , , , . . . .
4 3 2 2 3 4
∗ Writeup: Simon Lapointe.
1
3 Functions
1. Does 2x + y 2 = 12 represent y as a function of x?
Solution. No. Isolating y yields
√
y = ± 12 − 2x,
which does not assign a single value of y for each x (it is two-valued).
f : Y → R, f (x) = x4 .
Solution. It is injective for Y = (−∞, 0] and Y = [0, ∞), and any subset of
one of the two. It is never surjective since there is no x ∈ R such that x4 = −1,
for example.
4 Cardinality revisited
Is there a surjection N → P(N)? What about the other way?
Solution. There is no surjection N → P(N). Represent subsets A of N as
binary sequences, where the nth index being 1 indicates n is in A. Assume for
a contradiction that such a surjection exists. Enumerate all sequences Ai , and
form a sequence A, where the first index is the opposite of the first index of A1 ,
the second index is the opposite of the second index of A2 , the nth index is the
opposite of the nth index of An , etc. Then, A is not equal to any sequence Ai
but represents a subset of N, a contradiction.
There are many surjections P(N) → N. For example, if A is a subset of N,
send it to the smallest natural number in it, and send the empty set to anything.
5 Relations
Prove that the relation ∼ on N × N defined by
2
• Transitive: if (n, m) ∼ (n0 , m0 ) and (n0 , m0 ) ∼ (n00 , m00 ), there are k, k 0
such that
n + m0 + k = n0 + m + k, n0 + m00 + k 0 = n00 + m0 + k 0 ,
so
6 Number theory
Prove that, for all n ≥ 7, there are k, l ∈ N such that n = 2k + 5l.
Solution. We prove the statement by strong induction. There are two base
cases: 7 = 2 · 1 + 5 · 1 and 8 = 2 · 4 + 5 · 0. Now, for the induction step, suppose
all natural numbers up to n − 1 are expressible this way. In particular, n − 2 is,
as
n − 2 = 2k + 5l =⇒ n = 2(k + 1) + 5l.
We are done.