PC Discussion 2
PC Discussion 2
So P(n,r) =
in factorial notation.
Example: P(10,4) =
= 10987 = 5040.
Example:
Hussein builds homes from nine different models and presently has five lots to build on. In how
many different ways can he arrange homes on these lots? Assume five different models will be
built.
Since order matters (the word arrange is used), it is a permutation.
P(9,5) = 15120 ways
Example:
Five math books, four history books and three science books are to be arranged on a shelf. How
many ways can this be done?
How many ways can they be arranged if all books of the same subject must be kept together?
If they all just need to be arranged, the type of book is irrelevant so you want to arrange 12
books.
P(12,12) = 12!= 479,001,600 ways.
If you must keep the same subjects together, then you have to do a series of tasks:
Decide the order of the subjects: P(3,3) = 3! = 6 ways.
and then
Arrange each subject: math: P(5,5) = 5! = 120 ways
and then
history: P(4,4) = 4! = 24 ways
and then
science: P(3,3) = 3! = 6 ways
Since they are all separated by the words and then, multiply the results: 6120246 = 103,680
ways.
HW P2a, # 28: see handout.
Combinations
Sometimes the order is not important. If you have FOUR people in a club and wish to form a
committee of TWO people, it is not important what order you choose the people, it will be the
same committee. A combination of n people taken r at a time is given by C(n,r). which is also
sometimes written, nCr; or
; or
Lets say we have a group of N = {A,B,C,D }, the number of two person committees is listed
below:
AB, AC, AD, BC,BD,CD
We are trying to find the number of subsets of size 2 from a group of 4 people. There are 6 of
these subsets.
If we wish to find a formula for this, without listing them, let us look at the relationship to
permutations. Each of the subsets has two possible arrangements (permutations), for example
AB can also be arranged as BA, and so on for each subset. Thus there are two times as many
permutations of 4 items taken 2 at a time as there are combinations.
So the number of combinations of 4 people taken two at a time, C(4,2) =
= 6 ways.
The 2 in the denominator appears because there are 2 different ways to arrange each set of two
things. In general r things can be arranged r! different ways (as we have previously seen.)
So the Combinations Formula is given by:
The number of combinations, or subsets, of n distinct things taken r at a times , where r n, is
C(n,r) =
We can combine this formula with the factorial formula for permutations and come up with this:
C(n,r) =
Example:
C(9,5) =
= 126
Notice that there are NO limitations on the problem, and that order does not matter. This is Not
a combination or permutation, because once a student is used, he/she can be used again. This is
a counting problem that would use the fundamental principle of counting.
The first textbook can be given to any of the 8 students, and the 2nd text can be given to any of
the 8 and so on. So the solution is 88888 = 85 = 32,768 ways.
Why isnt it 58 ways?
If you were to start with the students and say the first student could have 5 OR the second could
have 5 and so on, you cannot use the fundamental principle of counting, because the statements
are separated by the word OR not the word AND. Secondly, this does not take into account the
possibility that one could have 1 and any of the others 4, or 1 could have 2 and any of the other 3
(and so on with all the variations). This becomes a very complicated method of dealing with the
problem (although it could be done, but has many opportunities for error).
b) A teacher has 5 distinct textbooks to give out to 8 students. How many ways can this be done
if each student can have no more than one textbook?
This problem notes that each textbook is distinct (so they can be told apart). Thus the order they
are distributed matters. Also, once a student has a text he cannot have another (repetitions are
not allowed), so the restrictions of permutations hold.
P(8,5) = 6720 ways
c) A teacher has 5 identical textbooks to give out to 8 students. How many ways can this be
done if each student can have no more than one textbook?
This problem has identical textbooks, so the order they are given out does NOT matter (in the
end it only matters who has the texts, not what order they received them). Also, once a student
has a text, he cannot have another (repetitions are not allowed), so the conditions of
combinations hold.
C(8,5) = 56 ways.
You should be able to tell the differences in these three types of problems, so that you can
identify the methods to be used.
The keys are whether repetitions are allowed, and whether order matters (if the objects are
identical, then order cannot matter).
HW P2b, # 29: see handout