

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Solutions to homework problems for the discrete mathematical structures course, covering topics such as the pigeonhole principle, combinatorial proof, binomial coefficients, and combinations & permutations. It includes detailed explanations and calculations for each problem.
Typology: Assignments
1 / 3
This page cannot be seen from the preview
Don't miss anything!


CS173 Discrete Mathematical Structures
Fall 2006
Homework #9 Solution
due Tuesday, November 7, 2006, 8:00 a.m.
(46 points + 6 bonus points)
1. The Pigeonhole Principle (10 points)
a. 5 points.
2 points for correctly grouping addresses into pairs of consecutive numbers.
2 points for applying the PHP.
1 point for including the fact that each house has a distinct address
Group 50 addresses into 25 pairs of consecutive numbers: {1000, 1001}, {1002,
1003}, …, {1048, 1049}. Now we assign 26 houses to 25 groups. According to the PHP
and the fact that each house has a distinct address, there must be two houses assigned to
the same group of addresses. Therefore, these two houses have consecutive addresses.
b. 5 points.
1 point for using only starting and ending letters of strings.
2 points for finding all combinations of the starting and ending letters.
2 points for using the PHP.
Nonempty strings over { a , b , c , d } can be any size greater than 0, can use any
combination of letters, and can have any order. We are only concerned with the starting
and ending letters of strings. Find all 16 possible combinations of the starting and ending
letters:
aa ab ac ad
ba bb bc bd
ca cb cc cd
da db dc dd
Now that we have 16 “pigeonholes” and 17 “pigeons”, we apply the PHP and conclude
that there must be two different strings that have similar starting and ending letters.
2. Combinatorial Proof (8 points)
4 points for each side. Deduct 6 points off for only rephrasing the hints.
First note that we can start the summation with k = 1, since the term with k = 0 is 0. The
left-hand side counts the number of ways to choose a subset as described in the hint by
breaking it down by the number of elements in the subset, note there are k ways to choose
each of the distinguished elements if the subset has size k. For the right-hand side, first note
that
2 2 2 1 ( 1)2 ( 1 2)2 ( 1)2 2
n n n n n n n n n n n
− − − −
number of ways to make this choice if the two distinguished elements are different (choose
them, then choose any subset of the remaining elements to be the rest of the subset). The
second term counts the number of ways to make this choice if the two distinguished elements
are the same (choose it, then choose any subset of the remaining elements to be the rest of the
subset). Note that this works even if n = 1.
3. Binomial Coefficients (10 points + 6 bonus points)
a. (5 points)
198 2 192 3
x x x
x
:
First determine which term 300
x
is: (200 − k ) − 3 k = − 300 ⇒ k = 125
Then apply the binomial theorem:
150 50 150 50 3
x x
b. Bonus: 6 points
1 point for correct range of k : − 600 ≤ k ≤ 200
1 point for a piecewise function
1 point for k being a multiple of 4
1 point for the correct value 0 for k not evenly divided by 4
1 point for finding
k C
1 point for the correct +/- sign:
600 4 ( 1)
−
600 4
k k C k k f k
k k
(^) + ⋅ − , − ≤ ≤ =
, −^ ≤^ ≤^ /
c. 5 points
2 points for (1 1) 0
n − = .3 points for expand (1 1)
n − using the binomial theorem.
Notice that (1 1) 0
n − =. We apply the binomial theorem to (1 1)
n − , we have
1 2 2
n
n n n n
n
C n C n C n C n n
C n C n C n C n n
− −