Intermediate Counting Probability Chapter 1
Intermediate Counting Probability Chapter 1
Intermediate Counting Probability Chapter 1
Prakhar Bhandari
Exercise 1.1. My city is running a lottery. In the lottery, 25 balls numbered 1 through 25
are placed in a bin. Four balls are drawn one at a time and their numbers are recorded. The
winning combination consists of the four selected numbers in the order they are selected.
How many winning combinations are there, if:
(b) each ball is replaced in the bin after it is removed and before the next ball is drawn?
Answer: 25 × 25 × 25 × 25 = 254 = 390, 625
Exercise 1.2. On the island of Mumble, the Mumblian alphabet has only 5 letters, and
every word in the Mumblian language has no more than 3 letters in it. How many ords are
possible? (A word can use a letter more than once, but 0 letters does not count as a word.)
Answer: We can split up this problem into cases.
Case 1 : Word length of one. In this case, there are only 5 options.
Case 2 : Word length of two. In this case, there are 5 × 5 = 25 options.
Case 3 : Word length of three. In this case, there are 5 × 5 × 5 = 125 options.
Total options = 5 + 25 + 125 = 155
Exercise 1.3. The Smith family has 4 sons and 3 daughters. In how many ways can they
be seated in a row of 7 chairs, such that at least 2 boys are next to each other?
Answer: If we did not have the condition that at least 2 boys must be next to each other,
the solution would be 7!.
However, we must eliminate the cases in which this is not true. This can only happen in one
ordering, BGBGBGB.
1
There are 4 × 3 × 3 × 2 × 2 × 1 × 1 = 4! × 3! = 144 ways this can happen (4! orderings for
the boys, 3! orderings for the girls).
Hence, we have a total of 7! − 144 = 4896 orderings.
Exercise 1.4. How many 3-digit numbers have exactly one zero?
Answer: The zero cannot be the first digit, otherwise we would be dealing with a two digit
number. So, there are 9 (digits 1 through 9) choices for the first digit.
Now, we have two choices to put the one zero digit. It can either be the second digit or
the third digit. In both cases, we would be left with 9 choices (digits 1 through 9) for the
remaining digit.
Case 1 : Second digit This gives us a total of 9 × 1 × 9 = 81 numbers
Case 2 : Third digit This gives us a total of 9 × 1 × 9 = 81 numbers
Hence, we have a total of 81 + 81 = 162 orderings.
Exercise 1.5. Our math club has 20 members and 3 officers: President, Vice President,
and Treasurer. However, one member, Ali, hates another member, Brenda. In how many
ways can we fill the offices if Ali refuses to serve as an officer if Brenda is also an officer?
Answer: The easiest way to solve this problem is to use complementary counting. If we did
not have the condition about Ali and Brenda, there would be 20 × 19 times18 = 6840 ways.
However, we must eliminate the ways that violate our condition, namely the cases with both
Ali and Brenda in office.
If Ali and Brenda are in office, there are 18 options for the third person. Now, between the
three of them, there are 3 × 2 × 1 = 6 ways they can arrange the 3 office positions among
themselves. This gives us a total of 18 × 6 = 108 violating arrangements.
Hence, we have a total of 6840 − 108 = 6732 ways.
Exercise 1.6. How many possible distinct arrangements are there of the letters in the word
BALL?
Answer: There are 4! = 24 permutations of the 4 letters in the word BALL, but in each of
those permutations, the two L letters are identical, meaning BL1 AL2 is the same as BL2 AL1 .
Hence, we can divide this number of permutations by 2 to get the number of distinct ar-
rangements, giving us a total of 24
2
= 12 arrangements.
Exercise 1.7. In how many different ways can 6 people be seated at a round table? Two
seating arrangements are considered the same if, for each person, the person to his or her
left is the same in both arrangements.
2
Answer: For a straight line, there are 6! different ways for these 6 people to be arranged.
However, some of these arrangements are duplicates. For example, ABCDEF and BCDEFA
are different arrangements for straight lines, but are the same arrangement for a circle, where
F is to the left of A and A is to the right of F.
Without loss of generality, for any circular arrangement of A ↔ B ↔ C ↔ D ↔ E ↔ F ↔
(back to A), we can make six corresponding linear arrangements:
(1) ABCDEF
(2) BCDEFA
(3) CDEFAB
(4) DEFABC
(5) EFABCD
(6) FABCDE
Hence, to go from linear to circular arrangements for this problem, we can divide 6! by 6 to
get 6!6 = 120 arrangements.
Exercise 1.8. Consider a club that has n people. What is the number of ways to form an
r person committee from the total of n people?
Answer: Since there are no further distinctions beyond committee, the answer is simply n
n!
choose r, or nr =
orderings.
(r)!(n − r)!
Exercise 1.9. Each block on the grid shown below is 1 unit by 1 unit. Suppose we wish
to walk from ,4 to B via a 7 unit path, but we have to stay on the grid-no cutting across
blocks. How many different paths can we take?
Answer: Since we know that every path must be 7 units, the only possible directions we
can go are up and right. Furthermore, we must go up exactly three times and right exactly
four times.
3
With this information, we can formulate the problem in a different way. Let the letter R
represent going right and the letter U represent going up.
Then, this problem can be reduced to finding the number of distinct permutations of the
letters RRRRUUU.
The number of permutations of these 7 letters is 7!. However, we have duplicates.
For example, U1 U2 U3 RRRR is the same is U1 U3 U2 RRRR. With the three U letters, we have
3 × 2 × 1 = 3! ways of arranging the three U letters.
Similarly, there are 4! ways of arranging the four R letters.
7!
Hence, after dividing by the duplicates, we have a total of (3!)(4!)
= 35 paths.