Chapter 5 Prob
Chapter 5 Prob
Introduction
to Counting &
Probability
Chapter 5
A 7! = 7 = 35
4!3! 3
A
Exercises
5.2.1 How many paths are there from A to B on
the grid shown, if every step must be up or to the
right? B
A
There are 5 steps to the right and 2 steps up. These 7
steps can be made in any order, so the answer is
7 7x6
= = 21
2 2x1
Exercise 5.2.2
How many paths are there from C to D on
the grid shown, if every step must be down or to
the right? C
D
Exercise 5.2.2
There are 4 steps to the right and 6 steps down.
These 10 steps can be made in any order, so
C
D
10 = 10 x 9 x 8 x 7 = 210
4 4x3x2x1
Exercise 5.2.3
(a) How many 9-step paths are there from E to G?
G
Exercise 5.2.3
(a) How many 9-step paths are there from E to G?
E
G
There are 5 steps right and 4 steps down. These 9
steps can be in any order, so
9 = 9 x 8 x 7 x 6 = 126
4 4x3x2x1
Exercise 5.2.3
(b) How many of those paths pass through F?
E
F
G
From E to F, it is 3 steps to the right and 1 step
down, for a total of 4 4
= = 4 different paths
1 1
E
F
G
From F to G, it is 2 steps to the right and 3 steps
down, for a total of 5 5x4
= = 10 different paths
2 2x1
E
F
G
From F to G, it is 2 steps to the right and 3 steps
down, for a total of 5 5x4
2 2x1
= = 10 different paths
E
So there are 4 x 10 = 40 paths F
from E to G through F.
G
More Committee-type Problems
Problem 5.2 Coach Grunt is preparing the 5-
person starting lineup for his basketball team, the
Grunters. There are 12 players on the team. Two
of them, Ace & Zeppo, are league All-Stars, so
they’ll definitely be in the starting lineup. How
many different starting lineups are possible?
Coach Grunt has to choose 3 players from the
10 players that are remaining after Ace & Zeppo
have been placed in the lineup. The order does
not matter, so the answer is
10 10 x 9 x 8
3 3x2x1
= problem that= 120
This is a basic combination
you should already know!
Problem 5.3
10
- 8
+ 8 =210 – (28 + 70) =112
4 2 4
The other way is to solve this by direct casework.
9
= 36.
2
Solution
5.3.5 We call a number a mountain number if its
middle digit is strictly larger than any other digit.
before it. For example, 284 is a mountain #. How
many 3-digit mountain numbers are there?
Case 2: numbers of the form xyz (z ≠ 0, x ≠ z)
Any group of 3 nonzero digits (y > x > z > 0)
has 2 corresponding mountain #’s (xyz and zyx),
so the # of these is
2x 9
= 168.
3
Solution
5.3.5 We call a number a mountain number if its
middle digit is strictly larger than any other digit.
before it. For example, 284 is a mountain #. How
many 3-digit mountain numbers are there?
Case 3: numbers of the form xy0 (x ≠ 0, y ≠ 0)
Any pair of nonzero digits has a corresponding
mountain # in the form xy0,
so there are
9
= 36.
2
Solution
5.3.5 We call a number a mountain number if its
middle digit is strictly larger than any other digit.
before it. For example, 284 is a mountain #. How
many 3-digit mountain numbers are there?
36 + 168 + 36 = 240.
Distinguishability
Distinguishable means to tell items apart and
indistinguishable means items cannot be told
apart.
A B
C D Box 1 Box 2
Box 1 Box 2
A B
C D
Problem 5.7
We don’t care which box is which, we only care
about which balls are together and which ones
aren’t. There are 2 ways we can do this count.
1st: take the count from Prob 5.6 & divide by the #
of ways to arrange the boxes – 2! = 2 ways so
A B
C D
there are 16/2 = 8 ways to arrange 4
distinguishable balls into 2 indistinguishable
boxes.
Problem 5.7
WARNING:
This method does not generalize to more
than 2 boxes, as you will see in Exercise 5.4.2.
A B
C D
Problem 5.7
Alternatively, this could have been solved by
casework.
Case 1: One box has 4 balls, the other has 0 balls
There is only 1 way to do this – put all the balls
into
A B
C D
A B
C D
A B
C D
So there are 4C2 = 6 choices.
However, this overcounts the choices by a factor
of 2.
Problem 5.7
Case 3: Each box has 2 balls
For Example: Look at balls A, B, C, & D. If we
1st choose A & B, then one box has A, B, and the
other has C, D.
A B
C D
Problem 5.7
Case 3: Each box has 2 balls
But this is exactly the same situation as if we had
originally put C, D in the 1st box and A, B in the
2nd box,
A B
C D
so divide by 2,
giving 6/2 = 3 possibilities
Problem 5.7
To get the total number of possibilities, add the
counts from the 3 cases: 1 + 4 + 3 = 8
ways to arrange 4 distinguishable balls into
2 indistinguishable boxes.
A B
C D
Problem 5.7
WARNING:
This casework approach is not quite as simple
if there are 3 or more boxes, as will be
demonstrated in Exercise 5.4.2.
A B
C D
Problem 5.8
How many ways are there to put 4 indistinguishable
balls into 2 distinguishable boxes?
Box 1 Box 2
Problem 5.8
How many ways are there to put 4 indistinguishable
balls into 2 distinguishable boxes?
Since the balls are indistinguishable, the only thing
to keep track of is how many balls are in each box.
In this case, the cases can be listed:
Box 1 Box 2
Problem 5.8
How many ways are there to put 4 indistinguishable
balls into 2 distinguishable boxes?
Since the balls are indistinguishable, the only thing
to keep track of is how many balls are in each box.
In this case, the cases can be listed:
Box 1 Box 2
Box 1 Box 2
A
Solutions
5.10 In the diagram shown
(a)how many paths are there from A to B? (Assume
all paths only go up and to the right.)
There are 5 steps to the right and 4 steps up. These 9
steps can be made in an order, so the answer is
9C4 = 126.
A
Solutions
5.10 In the diagram shown
(b) how many paths are there from A to C?
There is 1 step to the right and 2 steps up. These 3
steps can be made in any order, so the answer is
3C1 = 3.
A
Solutions
5.10 In the diagram shown
(c) how many paths are there from C to B?
There are 4 steps to the right and 2 steps up. These 6
steps can be made in any order, so the answer is
6C4 = 15.
A
Solutions
5.10 In the diagram shown
(d) how many paths are there from A to B passing
through C?
There are 3 paths from A to C and 15 paths from C to
B, so there are 3 X 15 = 45 paths from A to B through
C.
A
Review Problems
5.13 My school’s math club has 6 boys and 8
girls. I need to select a team to send to the state
math competition. We want 6 people on the team.
In how many ways can I select the team:
(a)without restrictions?
(b)to have 3 boys and 3 girls?
(c)to have more girls than boys?
Solutions
We want 6 people on the team.
In how many ways can I select the team:
(a)without restrictions?
With no restrictions, we are merely picking 6 out
of 14. This is 14C6 = 3003.
Solutions
We want 6 people on the team.
In how many ways can I select the team:
(b) to have 3 boys and 3 girls?
We are picking 3 boys out of 6, so there are
6C3 = 20 options for the boys on the team. We are