Counting Techniques
Counting Techniques
1
Possibility trees
and Multiplication Rule
Example:
When buying a PC system, you have the choice of
3 models of the basic unit: B1, B2, B3 ;
2 models of keyboard: K1, K2 ;
2 models of printer: P1, P2 .
Question:
How many distinct systems can be purchased?
2
The Multiplication Rule
If an operation consists of k steps and
the 1st step can be performed in n1 ways,
the 2nd step can be performed in n2 ways
(regardless of how the 1st step was performed) ,
….
the kth step can be performed in nk ways
(regardless of how the preceding steps were performed) ,
then the entire operation can be performed
in n1 ∙ n2 ∙… ∙ nk ways.
3
Possibility trees and Multiplication Rule
Example(cont.): The possibility tree:
Start
Select the B1 B2 B3
basic unit
K1 K2 K1 K2 K1 K2
Select the P1 P2 P1 P2 P1 P2 P1 P2 P1 P2 P1 P2
keyboard
Select the
printer
7
Example 2
A college freshman must take a science
course, a humanities course and
mathematics course. If she may select any
of 6 science courses, any of 4 humanities
and any of 4 mathematics courses, how
many ways can she arrange her program?
8
Example 3
If a multiple choice test consist of 5
questions each with 4 possible answers
which only one is correct,
a. How many different ways can a student
check off one answer to each question?
b. How many ways can a student check off
one answer to each and get all the
questions wrong?
9
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?
10
Permutations
A permutation of a set of objects
is an ordering of the objects in a row.
• Example: The permutations of {a,b,c}:
abc acb bac bca cab cba
Theorem. For any integer n with n≥1,
the number of permutations of a set with n
elements is n! .
Proof. Forming a permutation is an n-step operation:
Step 1: Choose the 1st element ( n different ways).
Step 2: Choose the 2nd element ( n-1 different ways).
…
Step n: Choose the nth element (1 way).
Based on the multiplication rule,
the number of permutations is n∙(n-1)∙…∙2∙1 = n!
Theorem. For any integer n with
n≥1, the number of permutations
of a set with n elements taken r at
a time is
nPr=
12
Example 1
13
In a certain country, the car number
plate is formed by 4 digits from the digits
1, 2, 3, 4, 5, 6, 7, 8 and 9 followed by 3
letters from the alphabet. How many
number plates can be formed if neither the
digits nor the letters are repeated?
14
The simplest protein molecule in biology is called
vasopressin and is composed of 8 amino acids that
are chemically bound together in a particular order.
The order in which these amino acids occur is of vital
importance to the proper functioning of vasopressin. If
these 8 amino acids were placed in a hat and drawn
out randomly one by one, how many different
arrangements of these 8 amino acids are possible?
Answer: 8P8 15
In how many different ways can the letters of the
word 'OPTICAL‘ be arranged so that the vowels
always come together?
The word 'OPTICAL' contains 7 different letters.
When the vowels OIA are always together, they
can be supposed to form one letter.
Theorem
The number of permutations of
n distinct objects arranged in a
circle is (n-1)!.
17
Example 1
In how many ways can 5
different trees be planted in a
circle?
(5 – 1)! = 24
18
In how many ways can five people A, B, C, D, and
E be seated around a circular table if:
21
In how many different ways can the letters of the word
'MATHEMATICS' be arranged so that the vowels always
come together?
Now, we have to arrange 8 letters, out of which M occurs twice, T occurs twice
and the rest are different.
Number of ways of 8!
= 10080.
arranging these letters = (2!)(2!)
22
Combinations
The number of combinations of n distinct
taken r at a time is
23
Difference of Permutation and
Combination
• For example, let us say balls 1, 2 and 3
were chosen. These are the possibilites:
24
A committee including 3 boys and 4
girls is to be formed from a group of 10
boys and 12 girls. How many different
committee can be formed from the group?
25
In how many ways a committee,
consisting of 5 men and 6 women
can be formed from 8 men and 10
women?
Required
number of = (8C5 x 10C
6)
ways
26
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?
Required
number = (6C1 x 4C3) + (6C2 x 4C2) + (6C3 x 4C1) + (6C4)
of ways
27
From a group of 7 men and 6 women, five persons
are to be selected to form a committee so that at least 3
men are there on the committee. In how many ways can
it be done?
28
Eleven students put their names
on slips of paper inside a box. Three
names are going to be taken out.
How many different ways can the
three names be chosen?
29
In a class of 10 students, how many
ways can a club of 4 students be
arranged?
30