Module 6 Counting Techniques
Module 6 Counting Techniques
COUNTING TECHNIQUES
LEARNING OBJECTIVES
12 21 31 41
13 23 32 42
14 24 34 43
11 22 33 44
12 21 31 41
13 23 32 42
14 24 34 43
If the first activity can be done in n1 ways and the second activity in n2
ways then the total number of ways in which the two activities can be done
in equal to n1 x n2.
Solution:
a) Repetition is allowed
Example 2: How many three-digit numbers can be formed from the digits 1,
2, 3, 4, and 5 if any of the numbers can be repeated?
Solution:
It is obvious that if you have two different pool balls, there are two
ways to arrange them in a row:
But what if there were three balls, or four, or twelve? To see how to
find the answer for any number of balls, think of placing the balls as a
sequence of two tasks: first choose the left ball, and then choose the right.
You have two choices for the left ball, but then only one for the right, so there
is 2⋅1=2 ways to arrange the balls altogether. Similarly, if you have three
balls, there will be 3⋅2⋅1=6 ways to arrange them in order:
Solution:
John has two tasks to do: pick a novel and pick a cookbook. As he has
four different novels to choose from, he has four ways to accomplish that
task; as he has three cookbooks to choose from, he has three ways to do that.
Thus, he has 4⋅3=12 ways to pick a novel and then a cookbook.
Example 2. The Thursday special at Lisa’s Pizza is a large pizza with any
combination of toppings (but no more than one of each). The available
toppings are pepperoni, mushrooms, onions, sausage, peppers, olives, and
pineapple. How many different Thursday specials can be ordered?
Solution:
Suppose we have five pool balls and a box with only three slots.
Assuming that the order of the balls in the box matters, in how many
different ways could we choose three balls to put in the box?
This is not much different from the earlier question: we have five
choices for the first ball, then four for the second, and then three for the third,
so there is 5⋅4⋅3=60 ways to choose the three balls. Notice that 5⋅4⋅3=5! /
(5−3)! This leads to the following formula:
Number of Permutations
nPr = n! / (n−r)!
Solution:
n=5
D = r1 = 3
A = r2 = 1
Y = r3 = 1
Example: In how many ways can 6 persons be seated around a table with 6
chairs?
Solution:
Combinations
n C r=n! /(n−r)! r!
Other notations for n C r are C (n, r) and (r n). You need to know all these
notations.
Suppose we had five pools balls and wanted to choose four of them to
throw in a bag. In how many different ways could we choose the four balls?
Clearly, the only thing that matters here is which balls are chosen, not
the order in which they’ve chosen. If we choose Ball 2, then Ball 3, then Ball
1, then Ball 4, for example, we get the same result as if we choose Ball 1, then
Ball 2, then Ball 3, then Ball 4. A choice like this, where order does not matter,
is called a combination.
Example 1. Jerrold has five different pool balls. In how many different ways
can he choose four balls to put in a bag?
Solution:
5C4=5! / 4! (5−4)! =5, so there are five ways in which he can choose.
Solution:
Because the order in which side dishes are ordered does not matter,
this is a combinations problem. So, there are 12C3=12! /3! (12−3)!
=12⋅11⋅10⋅9⋅8⋅7⋅6⋅5⋅4⋅3⋅2⋅1/(3⋅2⋅1)(9⋅8⋅7⋅6⋅5⋅4⋅3⋅2⋅1)
=12⋅11⋅103⋅2⋅1=660 different choices.
Example 3. A box contains 7 red and 6 green balls. In how many ways can 2
balls be drawn such that
Solution:
The condition requires that the two balls when drawn must be both
green. This can be done in 6C2 ways. Since, only 2 balls shall be drawn, it
follows that no red ball shall be taken which can be done in 7C0 way. Hence,
by the fundamental principle of counting we have;
a) 6C2 * 7C0 = 6! / (6-2)! 2! * 7! / (7-0)! 0! = 15 *1 = 15 ways
b) 7C1 *6C1 = 7! / (7-1)! 1! *6! / (6-1)! 1! = 7*6= 42 ways
Activity
References: