Professional Documents
Culture Documents
Discussion 7 Fall 2019 Solutions PDF
Discussion 7 Fall 2019 Solutions PDF
Fall 2019
Discussion 7 Notes
Definitions
• Permutation:
• Combination:
• Binomial coefficient:
• Combinatorial proof:
• Permutations w/ Repetition:
• Stars and Bars:
• Permutations with Indistinguishable Objects:
Solution:
1
• Stars and Bars aka Combinations w/ Repetition: This approach is used when
putting indistinguishable objects into distinguishable containers (or selecting indis-
tinguishable objects of distinguishable types).
# of stars = # of objects
# of bars = # of types −1
The number of ways to put indistinguishable objects into distinguishable containers
is:
stars + bars stars + bars
=
stars bars
Solution: The constant term occurs when the power of the two x terms are3the same,
6
which is when they are both raised to the 3rd power. Thus, we have 3 (2x) · (5 x1 )3 =
6
3
· 8 · 125
Solution: Consider choosing a committee (of any size > 0) from a group of n people,
with one leader of the committee.
RHS: First choose the leader, then select the rest of the committee.
We can choose the leader from a group of n people in n different ways. Once the leader
is chosen, there are n − 1 people remaining, each of which you can either select or not
select to be on the committee (2 choices for each person). So there are 2n−1 ways to
select the rest of the committee. Hence, there are n 2n−1 ways to choose the committee
2
and its leader.
LHS: Choose the committee first, then select the leader from among those on the com-
mittee.
There are nk ways to choose a committee of k people from a pool of n people. Once the
committee can be anywhere from 1 and n people, we must considerPall values for k from
n n
1 to n. So the number of ways to create the desired committee is k=1 k k .
Pn n
As both sides count the same thing, k=1 k k
= n 2n−1 .
n+1 n n
Solution: Pascal’s identity r
= r−1
+ r
n n n! n!
+ = +
k−1 r (r − 1)!(n − r + 1)! r!(n − r)!
n! 1 1
= +
(r − 1)!(n − r)! n − r + 1 r
n! n+1
=
(r − 1)!(n − r)! r(n − r + 1)
(n + 1)!
=
r!(n − r + 1)!
n+1
=
r
4. Not In Book
How many different strings can be made from the letters in ATREYATATA, using all the
letters?
Solution: The letter “A” is repeated 4 times and “T” is repeated 3 times.
Number of ways =
10!
4!3!
3
5. Exercise 6.5.8
How many different ways are there to choose a dozen donuts from the 21 varieties at a donut
shop?
6. Exercise 6.5.38
How many different bit strings can be formed using six 1s and eight 0s?
Solution: There are 14 digits out of which we have to count the number of ways for us
to place six 1’s (the remaining digits will be 0).
Number of ways =
C(14, 6) = 3003
Solution: If 52 cards are dealt to 4 people, each player will receive 13 cards. Distributing
52 distinguishable objects into 4 distinguishable boxes can be done in:
Number of ways =
52
13! · 13! · 13! · 13!
(b) How many ways are there to put 6 employees in 3 identical offices if there are no
restrictions on the number of people per office?
4
Solution:
1. Well, it is sufficient to count the number of employees who are in a double / triple
office. You have these 2 possibilities: {1, 1, 1, 3}, {1, 1, 2, 2} for arrangement of staff
into offices. For the first arrangement/configuration, choose three of thesix to be
6
placed into the same office, then the rest will get their own. There are ways
3
to do this.
For the second configuration, start by selecting the two who will
get their own
4
office, leaving four employees to be paired off. There are 21 ways to do this
2
giving a total of
6 1 6 4
+ = 65
3 2 2 2
ways to put 6 employees in 4 identical offices if each office is nonempty.
2. For this case, consider the number of empty offices. There can be zero, one, or two
empty offices.
(1) One empty office:
To address this case, it is the same as putting six employees into two offices. There
are the following possibilities for doubling up on offices {1, 5}, {2, 4}, {3, 3} For the
first possibility, there are 6 ways to do this, simply choose the person who has their
6
own office then cram everyone else into the other. For the second, there are
4
possibilities, choose a set of 4 employees, these are the office mates for one office
1 6
and the remaining two go into the other. For the third possibility, there are 2
3
6
where the is obvious and the 21 comes from the fact that choosing one subset
3
of three is the same as choosing a subset of the other three, for example, choosing
{1, 2, 3} to be office mates is the same as choosing {4, 5, 6}. Giving a total of
6 1 6
6+ +
4 2 3
ways to select office mates for two offices (three with one empty)
(2) Two empty offices:
There is a single way to do this since everyone must be assigned to the same office.
(3) No office is empty:
for the offices: {1, 1, 4}, {1, 2, 3}, {2, 2, 2},
There are then the following possibilities
6
For the first possibility, there are possibilities, where the four chosen are put
4
in one office and the remaining two get their own. For the second possibility, start
5
by selecting who will have their own office. There are 6 options, now from the five
remaining, select a group of 2 andthen the remaining 3 will be put into the same
5
office. This gives that there are 6 ways to configure the staff into the second
2
configuration. For the third configuration, we must determine for any individual,
who their office partner will be. Starting with the 6 employees, choose two to be
paired off, leaving four, then pair off two of these giving
6 4
2 2
but then each configuration has been counted 6 times. This can be seen by con-
sidering how we counted. We selected a pair, and then another, leaving a third.
These pairs can be selected in any order so there are 3! ways we counted a given
configuration. This gives a total of
1 6 4
3! 2 2
for the final configuration of {2, 2, 2}. For the third case then there are a total of
1 6 4 5 6
+6 +
3! 2 2 2 4
ways to configure 6 faculty into three nonempty offices. This gives a grand total of
1 6 4 5 6 1 6
+6 +2 +7+
3! 2 2 2 4 2 3
ways to place 6 faculty into three identical offices where any number of people(up
to 6) may be put in a single office.