Assignment3 Solution
Assignment3 Solution
Assignment 3 – solutions
Problem 1. For any sets X and Y , we define the symmetric difference of X and Y as
X4Y = (X ∪ Y ) − (X ∩ Y ).
Note that it is also true that X4Y = (X − Y ) ∪ (Y − X). For each of the following statements, determine
whether the statement is true or false. Prove the true statements using the element method. Prove the false
statements false by giving a counterexample.
(a) “For all sets A, A4A = ∅.”
Solution. This statement is true.
Proof. Let A be a set. We will show that A4A = ∅. Assume instead that A4A 6= ∅. Then there exists
an element x ∈ A4A. By definition of 4, this means that x ∈ A − A. However A − A = ∅, so x ∈ ∅.
This is a contradiction, so the assumption that A4A 6= ∅ must be wrong. Therefore A4A = ∅.
as desired.
(d) How many subsets of S have 3 as their smallest element and have exactly 5 elements?
Solution. There are 74 = 35 subsets of S with exactly 5 elements that have 3 as their smallest element.
Explanation. A subset of S that has 3 as its smallest element must contain 3, and it cannot contain 1
or 2. To make a subset of S with exactly 5 elements that 3 as its smallest element, we choose 4 of the 7
remaining elements {4, 5, 6, 7, 8, 9, 10} and we include 3 in it. There are 74 possibilities.
(e) How many subsets of S have 6 as their smallest element and have exactly 5 elements?
Solution. There are 44 = 1 subsets of S with exactly 5 elements that have 6 as their smallest element.
Explanation. A subset of S that has 6 as its smallest element must contain 6, and it cannot contain any
of the numbers from 1 to 5. To make a subset of S with exactly 5 elements that 6 as its smallest element,
we choose 4 of the 4 remaining elements {7, 8, 9, 10} and we include 6 in it. There are 44 possibilities.
(That is, there is only one possibility since the only set that fits the criteria is the set {6, 7, 8, 9, 10}.)
(f) Use the method of combinatorial proof to prove the following identity:
10 9 8 7 6 5 4
= + + + + + .
5 4 4 4 4 4 4
Use complete sentences. (Hint: Find two different ways to count the number of subsets of S that have
exactly 5 elements. Use parts (b), (d), and (e).)
3
Proof. We count the number of subsets of S that contain exactly 5 elements in two different ways. For
the first way, we choose 5 elements from the 10, as in part (b). So there are
10
(∗)
5
total subsets of S with exactly 5 elements.
For the second way of counting the number of subsets of S with exactly 5 elements, we split up the
counting into six different types of subsets. For any subset of S with exactly 5 elements, there are 6
possibilities for the smallest element of that subset.
• We first count the number of subsets of S that have exactly 5 elements and have 1 as their smallest
element. There are 94 of these, since such subsets must include 1 and we then choose 4 of the 9
remaining elements.
• Similarly, the number of subsets of S with 5 elements and have 2 as their smallest element is 84 .
• The number of subsets of S with exactly 5 elements and have 3 as their smallest element is 74 .
• The number of subsets of S with exactly 5 elements and have 4 as their smallest element is 64 .
• The number of subsets of S with exactly 5 elements and have 5 as their smallest element is 54 .
• The number of subsets of S with exactly 5 elements and have 6 as their smallest element is 44 .
This accounts for all of the possible subsets of S with exactly 5 elements. So there are
9 8 7 6 5 4
+ + + + + (∗∗)
4 4 4 4 4 4
total subsets of S that contain exactly 5 elements. Since the number of subsets must be the same
no matter how we count them, the two numbers in (∗) and (∗∗) must be the same. This proves the
identity.
Problem 3. Let f : R → R be the function defined by f (x) = 2bxc − x for each x ∈ R. Let g : R → R be
the function defined by g(x) = x2x+1 for all x ∈ R.
(a) Prove that f is one-to-one.
Proof. Let x1 , x2 ∈ R and suppose that f (x1 ) = f (x2 ). That is,
(We want to show that x1 = x2 .) From the definition of floor, we see that
Set r1 = x1 − bx1 c and r2 = x2 − bx2 c so that x1 = bx1 c + r1 and x2 = bx2 c + r2 , where r1 and r2 are
real numbers so that 0 ≤ r1 < 1 and 0 ≤ r2 < 1. From this we know that
From (2) and (3), we see that r1 − r2 is an integer (since bx1 c − bx2 c is an integer) and r1 − r2
is strictly greater than −1 and strictly less than 1. Therefore r1 − r2 = 0, since the only integer
between −1 and 1 is zero. Thus r1 = r2 . Hence bx1 c − bx2 c = 0 and thus bx1 c = bx2 c. Therefore
x1 = bx1 c + r1 = bx2 c + r2 = x2 . This means that f is one-to-one.
4
(b) Prove that f is onto.
Proof. Let y ∈ R be arbitrary. Choose x = 2dye − y. We will show that f (x) = y.
We first show that, for all numbers z ∈ R, b−zc = −dze.
Let z be an arbitrary real number. By definition of floor, b−zc is the unique integer such that
Multiplying (4) by −1, we see that this becomes −b−zc ≥ z > −b−zc − 1. Flipping this around,
we see that
−b−zc − 1 < z ≤ −b−zc. (5)
Where −b−zc is an integer. But, from the definition of ceiling, dze is the unique integer such that
Examining (5) and (6) we see that −b−zc = dze, since they must be the same integer (from the
definition of ceiling). Hence b−zc = −dze.
Now 2dy − yc = 2dye + b−yc, since 2dye is an integer. Thus
f (x) = 2bxc − x
= 2 2dy − yc − (2dye − y)
= 2(2dye + b−yc) − 2dye + y
= 2(2dye − dye) − 2dye + y since b−yc = −dye
= 2dye − 2dye + y
= y.
Thus f is onto.