Lesson 6 Counting Rules
Lesson 6 Counting Rules
Counting Rules
Solution:
H, 1
H, 2 n 𝑐𝑜𝑖𝑛𝑠 = 2
H, 3 n 𝑑𝑖𝑒 = 6
H, 4
H, 5 Let
H, 6 𝑇 = 𝑡𝑜𝑡𝑎𝑙 # 𝑜𝑓 𝑝𝑜𝑠𝑠𝑖𝑏𝑖𝑙𝑖𝑡𝑖𝑒𝑠
T, 1 𝑇 = 𝑛(𝑐𝑜𝑖𝑛𝑠) ∙ 𝑛(𝑑𝑖𝑒)
T, 2
T, 3 =2∙6
T, 4
𝑻 = 𝟏𝟐
T, 5
T, 6
Example 2:
How many different kinds of paint can be made if a person can select
one color, one type, one texture, and one use?
Solution:
Color red, blue, white, black, green, brown, yellow
Type latex, oil
Texture flat, semi gloss, high gloss
Use outdoor, indoor
n 𝑐𝑜𝑙𝑜𝑟 = 7 n 𝑡𝑒𝑥𝑡𝑢𝑟𝑒 = 3
n 𝑡𝑦𝑝𝑒 = 2 n 𝑢𝑠𝑒 = 2
Solution:
Example 4:
The digits 0, 1, 2, 3, and 4 are to be used in a four-digit ID card. How
many different cards are possible if repetitions are permitted?
Solution: 5 ∙ 5 ∙ 5 ∙ 5 = 54 = 𝟔𝟐𝟓
Example 5:
The digits 0, 1, 2, 3, and 4 are to be used in a four-digit ID card. How
many different cards are possible if repetitions are NOT permitted?
If repetitions are permitted, then the numbers stay the same going
from left to right. If repetitions are not permitted, then the numbers
decrease by 1 for each place left to right.
Counting Rules
✓ the fundamental counting rule
o the permutation rule
o the combination rule.
Factorial Notation, 𝒏!
Factorial Formulas
For any counting number, 𝑛
𝑛! = 𝑛 𝑛 − 1 𝑛 − 2 … 1
0! = 1
Examples:
5! = 5 4 3 2 1 = 𝟏𝟐𝟎
9! = 9 ∙ 8 ∙ 7 ∙ 6 ∙ 5 ∙ 4 ∙ 3 ∙ 2 ∙ 1 = 𝟑𝟔𝟐, 𝟖𝟖𝟎
❖ Permutations
A permutation is an arrangement of 𝑛 objects in a specific order.
Example 1:
5! = 5 4 3 2 1 = 𝟏𝟐𝟎
Example 2:
There are four candidates for a job. The members of the search
committee will rank the four candidates from strongest to weakest.
How many different outcomes are possible?
Solution:
1. Choose first book: 20 options 6. Choose sixth book : 15 options
2. Choose second book: 19 options 7. Choose seventh book: 14 options
3. Choose third book: 18 options 8. Choose eighth book: 13 options
4. Choose fourth book: 17 options 9. Choose ninth book: 12 options
5. Choose fifth book: 16 options
20 19 18 17 16 15 14 13 12
= 𝟔𝟎, 𝟗𝟒𝟗, 𝟑𝟐𝟒, 𝟖𝟎𝟎 arrangements
Example 4:
Suppose the business owner in Example 1 wishes to rank only the top
three of the five locations. How many different ways can she rank
them?
Solution:
O, I, A
The number of ways to arrange all the letters ⇒ 5!
The number of ways to arrange the 3 vowels⇒ 3!
6 5 4 = 𝟏𝟐𝟎
Thus, 120 3-digit numbers can be formed from the given digits.
Example 7:
How many 3-digit numbers can be formed from the digits 2, 3, 5, 6, 7
and 9 which are divisible by 5 and none of the digits is repeated.
Solution:
(4) (5) (1)
______ ______ ______
Hundreds Tens Ones
1 5 4 = 𝟐𝟎
Example:
6! 6! 6∙5∙4∙3∙2∙1
6𝑃4 = 𝑃 6,4 = = = = 𝟑𝟔𝟎
6−4 ! 2! 2∙1
Example 1:
Solution:
5! 5! 5∙4∙3∙2∙1
5𝑃5 = 𝑃(5,5) = = = = 𝟏𝟐𝟎
5−5 ! 0! 1
Therefore, the business owner can rank the 5 locations in 120 ways.
Example 2:
Solution:
5! 5! 5∙4∙3∙2∙1
5𝑃3 = 𝑃(5,3) = = = = 𝟔𝟎
5 − 3 ! 2! 2∙1
Solution:
8! 8!
8𝑃3 = 𝑃(8,3) = = = 𝟑𝟑𝟔
8−3 ! 5!
Therefore, the director can set up three new stories out of the eights
stories in 336 ways.
Example 4:
Solution:
7! 7!
7𝑃2 = 𝑃(7,2) = = = 𝟒𝟐
7−2 ! 5!
Solution:
8! 8! 8 ∙ 7 ∙ 6!
8𝑃2 = 𝑃(8,2) = = = = 𝟓𝟔
8−2 ! 6! 6!
The total number of ways a man may enter the building and leave by
a different exit is 56 ways
Example 6:
Solution:
8!
8𝑃3 = 𝑃(8,3) =
8−3 !
8! 8 ∙ 7 ∙ 6 ∙ 5!
= = = 𝟑𝟑𝟔
5! 5!
There are 336 possibilities that 3 different
prizes can be awarded among 8 people.
Example 7:
Solution:
3! 3!
3𝑃2 = 𝑃 3,2 = = =𝟔
3 − 2 ! 1!
In how many different ways can the letters of the word 'DETAIL' be
arranged such that the vowels must occupy only the odd positions?
Solution:
3 vowels (EAI) and __ __ __ __ __ __
3 consonants (DTL) (1) (2) (3) (4) (5) (6)
= 6 6 = 𝟑𝟔 𝒘𝒂𝒚𝒔
NUMBER OF DISTINGUISHABLE PERMUTATIONS
Solution:
𝑛! 12! 12 ∙ 11 ∙ 10 ∙ 9 ∙ 8 ∙ 7 ∙ 6 ∙ 5!
= =
𝑛1 ! 𝑛2 ! … 𝑛𝑘 ! 4! 3! 5! (4 ∙ 3 ∙ 2 ∙ 1)(3 ∙ 2 ∙ 1)5!
12 ∙ 11 ∙ 10 ∙ 9 ∙ 8 ∙ 7 ∙ 6 ∙ 5!
=
(4 ∙ 3 ∙ 2 ∙ 1)(3 ∙ 2 ∙ 1)5!
= 𝟐𝟕, 𝟕𝟐𝟎
How many arrangements can be made out of the letters of the word
‘ENGINEERING’?
Solution:
The word 'ENGINEERING' has 11 letters.
'E' occurs 3 times, 'N' occurs 3 times, ‘G’ and ‘I’ occurs 2 times
𝑃𝑐 = 𝑛 − 1 !
Example:
Linear permutation of 3 objects is 3! = 6
{1,2,3}, {1,3,2}, {2,1,3}, {2,3,1}, {3,1,2}, {3,2,1}
Circular permutation of 3 objects is (3 − 1)! =2
{1,2,3}, {1,3,2}
Example:
Circular permutation of 4 objects is (4 − 1)! =6
Solution:
𝑃𝑐 = 𝑛 − 1 !
𝑃7 = 7 − 1 ! = 6! = 𝟕𝟐𝟎
The 7 children can be seated around the circular table in 720 ways.
Example:
Find the number of ways 6 people Ann, Ben, Carol, Dan, Eve and Faye
can be seated at a round table, such that Eve and Faye must always sit
together.
Example:
Selection of menu, food, clothes, subjects, the team are examples of
combinations.
Example:
A dress designer wishes to select two colors of material to design a
new dress, and she has on hand four colors. How many different
possibilities can there be in this situation?
Example:
Given the letters A, B, C, and D, list the permutations and combinations
for selecting two letters.
Solution:
The permutations are The combinations are
AB BA CA DA AB BA CA DA
AC BC CB DB AC BC CB DB
AD BD CD DC AD BD CD DC
There are 12 permutations. There are 6 combinations.
Example:
How many combinations of 4 objects are there, taken 2 at a time?
Solution:
4! 4! 4 ∙ 3 ∙ 2!
4𝐶2 = 𝐶(4,2) = = = =𝟔
4 − 2 ! 2! 2! 2! 2 ∙ 1 ∙ 2!
Combination Rule: Permutation Rule:
𝒏! 𝒏!
𝒏𝑪𝒓 = 𝒏𝑷𝒓 =
𝒏 − 𝒓 ! 𝒓! 𝒏−𝒓 !
𝒏!
𝒏𝑪𝒓 =
𝒏 − 𝒓 ! 𝒓!
𝒏𝑷𝒓
𝒏𝑪𝒓 =
𝒓!
Solution:
12! 12!
12𝐶5 = 𝐶(12,5) = =
12 − 5 ! 5! 7! 5!
12 ∙ 11 ∙ 10 ∙ 9 ∙ 8 ∙ 7!
=
7! 5 ∙ 4 ∙ 3 ∙ 2 ∙ 1
= 𝟕𝟗𝟐
Example 2:
Six points lie on the circumference of a
circle. How many inscribed triangles can
be drawn having these points as vertices?
Solution:
6! 6!
6𝐶3 = 𝐶 6,3 = = = 𝟐𝟎
6 − 3 ! 3! 3! 3!
Solution:
7𝐶3 = 𝑐𝑜𝑚𝑏𝑖𝑛𝑎𝑡𝑖𝑜𝑛 𝑜𝑓 7 𝑤𝑜𝑚𝑒𝑛,
𝑡𝑎𝑘𝑒𝑛 3 𝑎𝑡 𝑎 𝑡𝑖𝑚𝑒 7𝐶3 ∙ 5𝐶2
7!
7𝐶3 = 7! 5!
7 − 3 ! 3! = ∙
7 − 3 ! 3! 5 − 2 ! 2!
5𝐶2 = 𝑐𝑜𝑚𝑏𝑖𝑛𝑎𝑡𝑖𝑜𝑛 𝑜𝑓 5 𝑚𝑒𝑛,
= 𝟑𝟓𝟎
𝑡𝑎𝑘𝑒𝑛 2 𝑎𝑡 𝑎 𝑡𝑖𝑚𝑒
5!
5𝐶2 =
5 − 2 ! 2!
Example 5:
Out of 7 consonants and 4 vowels, how many 5-letter words of 3
consonants and 2 vowels can be formed?
Solution:
# of ways of selecting 3 consonants from 7 = 7𝐶3
# of ways of selecting 2 vowels from 4 = 4𝐶2
6! 6! 4! 6! 4!
= + ∙ + ∙ +
6 − 4 ! 4! 6 − 3 ! 3! 4 − 1 ! 1! 6 − 2 ! 2! 4 − 2 ! 2!
6! 4!
∙
6 − 1 ! 1! 4 − 3 ! 3!
= 15 + 20 ∙ 4 + 15 ∙ 6 + 6 ∙ 4 = 𝟐𝟎𝟗
Thus, there are a total of 209 ways to select 4 children from 6 boys
and 4 girls where at least one boy is there.
Example 6 (alternative solution):
In a group of 6 boys and 4 girls, four children are to be selected. In how
many different ways can they be selected such that at least one boy
should be there?
Solution:
6 boys and 4 girls = 10 participants
out of the 10 participants, 4 of children are needed without an all
girls situation
10! 4!
10𝐶4 − 4𝐶4 = − = 𝟐𝟎𝟗
10 − 4 ! 4! 4 − 4 ! 4!
Summary of Counting Rules
Solution:
ways to draw 5 cards from a deck ⟹ 52𝐶5
ways to get 4 aces ⟹ 4𝐶4
possibilities to get the 5th card ⟹ 48
4𝐶4 ∙ 48 1 ∙ 48 𝟏
𝑃 4 𝑎𝑐𝑒𝑠 = = =
52𝐶5 2,598,960 𝟓𝟒, 𝟏𝟒𝟓
Example 2:
A box contains 24 transistors, 4 of which are defective. If 4 are sold at
random, find the following probabilities.
a. exactly 2 are defective c. all are defective
b. none is defective d. at least 1 is defective
Topics: Probability
Counting Rules
Good Luck!