Fundamental and Counting Principle
Fundamental and Counting Principle
Counting Principal,
Permutations, &
Combinations
• Unit 2 Module 3
Objective(s)
1. State the principles of counting
2. Find the number of ways of arranging n
distinct objects
3. Find the number of ways of arranging n
objects some of which are identical
4. Find the number of ways of choosing r
distinct objects from a set of n distinct
objects .
Prerequisite(s)
• Be able to count
• Perfom basic arithmetic operation
• Group numbers in the correctly
The Fundamental Counting
Principal
• If you have 2 events: 1 event can occur m ways
and another event can occur n ways, then the
number of ways that both can occur is m*n
• Event 1 = 4 types of meats
• Event 2 = 3 types of bread
Tossed
Heads Tails 2 ways to flip the
2nd Coin coin.
Tossed
Heads Tails Heads Tails 2 ways to flip the
coin.
5
3 or more events:
• 3 events can occur m, n, & p ways, then
the number of ways all three can occur is
m*n*p
• 4 meats
• 3 cheeses
• 3 breads
• How many different sandwiches can you
make?
• 4*3*3 = 36 sandwiches
• At a restaurant in Port Maria, you have the
choice of 8 different entrees, 2 different
salads, 12 different drinks, & 6 different
deserts.
• How many different dinners (one choice of
each) can you choose?
• An ordering of n objects
is a permutation of the
objects.
There are basically two types of
permutation:
• Repetition is Allowed
14
There are 6 permutations of the
letters A, B, &C
• ABC You can use the
• ACB Fund. Counting Principal to
• BAC determine the number of
• permutations of n objects.
BCA
Like this ABC.
• CAB There are 3 choices for 1st #
• CBA 2 choices for 2nd #
1 choice for 3rd.
3*2*1 = 6 ways to arrange the
letters
In general, the # of
permutations of n objects is:
• n! = n*(n-1)*(n-2)* …
8 sprinters…
• How many different ways can 8 sprinters
in the Olympic 200m final finish the race?
(if there are no ties)
• 8! = 8*7*6*5*4*3*2*1= 40320
different ways
Back to the finals in the Olympic
200m sprint competition.
• How many different ways can 3 of the
sprinters finish 1st, 2nd, & 3rd (gold, silver,
bronze)
• Any of the 8 sprinters can finish 1 st, the
any of the remaining 7 can finish 2 nd, and
any of the remaining 6 can finish 3 rd.
• So the number of ways the sprinters can
win the medals is
• 8*7*6 = 336
If some of the items are identical,
distinguishable permutations must be used.
STATS
The T’s
S’s are
are not
not distinguishable.
distinguishable.
Example continues.
19
The number of distinguishable permutations
of the n objects is
n!
n1 ! �
n2 ! �n3 ! �
��nk !
where n = n1 + n2 + n3 + . . . + nk.
S’s A’s
T’s
20
Permutation of n objects taken r at
a time
• nP r = n!
n r !
Back to the last problem with the
sprinters
• It can be set up as the number of
permutations of 8 objects taken 3 at a
time.
• 8P3 = 8! = 8! =
(8-3)! 5!
• 8*7*6*5*4*3*2*1 = 5*4*3*2*1
• 8*7*6 = 336
10 colleges, you want to visit all or
some.
• How many ways can you visit
6 of them:
• Permutation of 10 objects taken 6 at a
time:
• 10P6 = 10!/(10-6)! = 10!/4! =
• 3,628,800/24 = 151,200
How many ways can you visit
all 10 of them:
• 10P10 =
• 10!/(10-10)! =
• 10!/0!=
• 10! = ( 0! By definition = 1)
• 3,628,800
So far in our problems, we have
used distinct objects.
• If some of the objects are repeated, then
some of the permutations are not
distinguishable.
• There are 6 ways to order the letters
M,O,M
• MOM, OMM, MMO
• MOM, OMM, MMO
• Only 3 are distinguishable. 3!/2! = 6/2 = 3
Permutations with Repetition
• The number of DISTINGUISHABLE
permutations of n objects where one
object is repeated q1 times, another is
repeated q2 times, and so on :
• n!
q1! * q2! * … * qk!
Find the number of distinguishable
permutations of the letters:
• OHIO : 4 letters with O repeated 2 times
• 4! = 24 = 12
• 2! 2
360
• WATERFALL :
90,720
A dog has 8 puppies, 3 male and 5
female. How many birth orders are
possible
• 8!/(3!*5!) = 56
What are
Combinations?
A combination of n elements taken r at a
time is a subset of the collection of elements
where order is not important.
Using the letters A, B, C, and D, find all the
possible combinations using two of the
letters.
{AB} This is the same as {BA}.
{AC}
{AD} There are six different
combinations using 2 of the 4
{BC} letters.
{BD}
{CD}
31
• There are also two types of
combinations (remember the order
does not matter now):
C = C = 10! = 10 ����
9 8 7 6! = 210
n r 10 6
4!6! 4 ���
3 2 1�
6!
33
Combinations and
Permutations
n P3 =
Ex. 6: How many five-card
hands are possible from a
standard deck of cards?
52 C5 = 2,598,960
Ex. 7: Given the digits 5, 3, 6, 7,
8, and 9, how many 3-digit
numbers can be made if the first
digit must be a prime number?
(can digits be repeated?)
Think of these numbers as
they were on tiles, like
Scrabble. After you use a ti
3 5 4 = 60
you can’t use it again.
Ex. 8: In how many ways
can 9 horses place 1st, 2nd,
or 3rd in a race?
P
9 3 = 504
Ex. 9: Suppose there are 15 girls
and 18 boys in a class. In how
many ways can 2 girls and 2
boys be selected for a group
project?