Professional Documents
Culture Documents
Discussion 6 Fall 2019 Solutions PDF
Discussion 6 Fall 2019 Solutions PDF
Fall 2019
Discussion 6 Notes
1 Definitions
• Well Ordering Property :
• Product Rule:
• Sum Rule:
• Inclusion-exclusion principle:
• Pigeonhole Principle:
Solution:
• Well Ordering Property: An (infinite) set A with ordering < is “well ordered”
if every non-empty subset S ⊆ A has a least element (according to <).
Example of well-ordered sets are N and Z+ .
1
• Product Rule: Suppose a procedure can be broken down into a sequence of k
tasks, where you have to do each task to complete the procedure. If there are nk
ways to do the k th task, then there are n1 · n2 · n3 · ... · nk ways to do all of the tasks
in the procedure.
• Sum Rule: Suppose that there are k distinct, disjoint methods to complete a
procedure such that k th method can be done in nk ways, then there are n1 + n2 +
... + nk ways of doing exactly one of these tasks.
1. 5.2 - Example 5
Use the well-ordering property to prove the division algorithm. Recall that the division
algorithm states that if a is an integer and d is a positive integer, then there are unique
integers q and r with 0 ≤ r < d and a = dq + r.
Solution:
Existence:
Let S = {x ∈ N | x = a − dq, q ∈ Z}. S is nonempty because we can pick some
q such that a − dq ∗ ≥ 0. By the well-ordering property, S has a least element. Call
∗
2
2. Exercise 6.1.16
How many strings are there of four lowercase letters that have the letter x in them?
Solution:
We can find the number of strings of four lowercase letter, and subtract the number
of strings of four lowercase letters other than x. Thus the answer is 264 − 254 = 66, 351.
3. Exercise 6.1.26
How many strings of four decimal digits
Solution:
a) There are 10 ways to choose the first digit, 9 ways to choose the second, and so on;
therefore the answer is 10 × 9 × 8 × 7 = 5040.
b) There are 10 ways to choose each of the first three digits and 5 ways to choose the
last; therefore the answer is 103 × 5 = 5000.
c) There are 4 ways to choose the position that is to be different from 9, and 9 ways to
choose the digit to go there. Therefore there are 4 × 9 = 36 such strings.
4. Exercise 6.1.40
How many subsets of a set with 100 elements have more than one element?
Solution: We know that there are 2100 subsets in all. 101 of them do not have more than
one element, namely the empty set and the 100 sets consisting of 1 element. Therefore
the answer is 2100 − 101 ≈ 1.3 · 1030 .
3
5. Exercise 6.2.14
How many ordered pairs of integers (a, b) are needed to guarantee that there are two ordered
pairs (a1 , b1 ) and (a2 , b2 ) such that a1 and a2 have the same remainder when divided by 5,
and b1 and b2 also have the same remainder when divided by 5?
Solution: Each ordered pair can be simplified down by taking the remainder when di-
vided by 5 of each coordinate. Therefore, every coordinate can be written as a coordinate
pair (0, 0), (0, 1), (0, 2), ..., (4, 4) for a total of 25 possible pairs. Therefore, we need 26
pairs to guarantee that these statements hold.
6. Exercise 6.2.18
How many numbers must be selected from the set {1, 3, 5, 7, 9, 11, 13, 15} to guarantee that
at least one pair of these numbers add up to 16?
Solution: We can group these into pairs that add up to 16 of: (1, 15), (3, 13), (5, 11), (7, 9).
Notably, no other pair of numbers sum to 16. Therefore, if we pick 5 numbers, it is guar-
anteed that we pick both numbers from at least one of these pairs.
7. Not in Book 1
Five distinct points are picked on the circumference of a sphere. Show that 4 of them must
lie on the same closed hemisphere (where a closed hemisphere is half of the circumference,
including the dividing circle).
Solution: Pick two points, this defines a circle on the sphere. This splits the surface of
the sphere into two hemispheres. By the Pigeonhole Principle, of the remaining 3 points,
two of them must be in the same hemisphere. Thus all four of them are on the same
closed hemisphere.
8. Exercise 6.3.46
How many ways are there for a horse race with four horses to finish if ties are possible?
[Note: Any number of the four horses may tie.]
Solution: We can solve this problem by breaking it down into cases depending on the
number of ties. There are five cases.
4
1) Assume that no horses tie. Then there are P (4, 4) = 24 possible ways for the horses
to finish.
2) Assume that there are two horses that tie, but the others have distinct finishes.
There are C(4, 2) = 6 ways to choose the horses to be tied, and P (3, 3) = 6) ways
to determine the order of finish for the three groups (the pair and the two single
horses). Thus there are 6 ∗ 6 = 36 ways for this to happen.
3) Assume that there are three horses that tie. By the same reasoning, there are
C(4, 3) ∗ P (2, 2) = 4 ∗ 2 = 8 ways for this to happen.
4) Assume that there are two groups of two horses that tie. There are C(4, 2) = 6
ways to choose the winners (the other two lose).
9. Not in Book 2
Find the coefficient of x2 in the expansion (x + x1 )10
Solution: Well, the kth term of this expansion is going to have power k − (10 − k) =
2k − 10. So, to find when the power is 2, we need that k = 6. This means the coefficient
is 10
6