Professional Documents
Culture Documents
Permutation and Combination PDF
Permutation and Combination PDF
Lecture 2
Permutations & Combinations
1
© m j winter FS2004
Player Numbers
Shirts have 2-digit numbers
Six possible digits: 0, 1, 2, 3, 4, 5
How many different numbers?
6 6 = 36
1
Permutations - Order Matters
The number of ways one can select 2 items from a set
of 6, with order mattering, is called
Calculating nPr
7P6 = 7 ·6 ·5 ·4 ·3 ·2 = 7 ·6 ·5 ·4 ·3 ·2 ·1 = 7!
Number of factors
Starting factor
4
2
Factorial Notation for nPr
7 ⋅ 6 ⋅ 5 ⋅ 4 ⋅ 3 ⋅ 2 ⋅1 7!
7 P3 = 7⋅6⋅5 =
4 ⋅ 3 ⋅ 2 ⋅1
=
4!
52 ⋅ 51 ⋅ 50 ⋅ 49 ⋅ 48! 52!
52 P4 = 52 ⋅ 51 ⋅ 50 ⋅ 49 =
48!
=
48!
20! 20!
20 P3 = 20 ⋅ 19 ⋅ 18 = =
? 17!
n!
Formula for nPr : n Pr =
(n − r )!
5
On your calculator
7P3
• TI-83
7 - MATH - PRB - nPr - 3 - ENTER
3
Combinations - Order Does Not Matter
nPn
Recall the convention: 0! =1
There are 3 ∗ 2 ∗ 1 = 3!
arrangements of 3 objects.
Using the nPr notation, from a set of 3 objects we are choosing 3.
3! 3! 3!
3P3 = = = = 3!
(3 − 3)! 0! 1
4
Combinations: 7C3
• In our list of 210 sets of 3 professors, with order
mattering, each set of three profs is counted 3! = 6
times. The number of distinct combinations of 3
professors is
7P 3 7P 3
7C3 = 6 = 3 !
7! 7 ⋅ 6 ⋅ 5 210
= = = = 35
(7 − 3)!3 ! 3 ⋅ 2 ⋅ 1 6
Warning
10
5
nCr
nPr n!
• Factorial formula is: n Cr = =
r! r !(n − r )!
• Practice:
8C2
8C6
10C4
11
• Practice:
8! 8 ⋅ 7 ⋅ 6 ⋅ 5 ⋅ 4 ⋅ 3 ⋅ 2 ⋅1 8 ⋅ 7
8C2 = = = = 28
2 ! 6 ! 2 ⋅ 1⋅ 6 ⋅ 5 ⋅ 4 ⋅ 3 ⋅ 2 ⋅ 1 2 ⋅ 1
8⋅7⋅6⋅5⋅4⋅3
8C6 = = 28
6 ⋅ 5 ⋅ 4 ⋅ 3 ⋅ 2 ⋅1
10 ⋅ 9 ⋅ 8 ⋅ 7
10C4 = = 210
4 ⋅ 3 ⋅ 2 ⋅1
12
6
What about xP3 and xC3?
x P3 = x( x − 1)( x − 2)
x( x − 1)( x − 2)
x C3 =
3!
13
ways to ways to
have 3 have 2 = 4C3 4C2 = 4·6 = 24
sixes nines
14
7
How many ways to have a Full House?
1. How many ways to have a full house with “sixes over”?
There are 24 ways to have 6’s over 9’s.
Could also have 6’s over 2’s, 6’s over 3’s, etc
12 possibilities for the pair
15
Of the
Of the 12, Of the
remaining
7 increased remaining 5,
2, 2 stayed
3 decreased
the same
12C7 5C3 2C2 =1
12! 5 ! 12!
1= = 7920
7 !5! 3 !2! 7!3!2!
16
8
How many 3-digit numbers can be made
using only 2 different digits?
Number must have 2 of one digit, one of another
ways to select ways to select
repeated digit single digit
10 9 = 90
Once selection is made, how many arrangements are
possible?
Suppose we’d selected: 4 4 5
How many places to put the “5”?
How many ways to choose 1 of 3 possible locations? 3C1= 3
90 selections, 3 arrangements for each: 90 * 3 = 270
17
18
9
Rearrangements with repeated letters; example BOSS
B O S S
If not, cross out
repeats
BOSS OBSS SSBO SSBO
There are 2! = 2
BOSS OBSS SSOB SSOB
rearrangements of
BSOS OSBS SBOS SBOS S and S
BSOS OSBS SBSO SBSO Every distinct
arrangement had
BSSO OSSB SOBS SOBS
been counted 2
BSSO OSSB SOSB SOSB times. Divide by 2.
19
STRESS
How many distinct arrangements
if S, S, and S are regarded as distinct letters? 6! = 720
What if S, S, and S are not regarded as distinct letters? If
all the fonts were changed to Arial, how many of the 720
would look like STRESS?
20
10
Rearrangements of sets containing repeats
• STRESS
6!
= 120
3!
• STRESSED STRESSED
8!
= 60 8!
3!2! If we could distinguish the E's,
3!
• SUPERSTRESSED
4 S’s, 3 E’s, 2 R’s
13!
= 21621600
4!3!2! 21
11