4
Permutations
•Numberofpokerhands(5cards):
–P(52,5)=52*51*50*49*48=311,875,200
•Numberof(initial)blackjackhands(2cards):
–P(52,2)=52*51=2,652
•r-permutationnotation:P(n,r)
–ThepokerhandisoneofP(52,5)permutations)1)...(2)(1(),( rnnnnrnP )!(
!
rn
n
n
rni
i
1
5
r-permutations example
•Howmanywaysaretherefor5peoplein
thisclasstogivepresentations?
•Thereare27studentsintheclass
–P(27,5)=27*26*25*24*23=9,687,600
–Notethattheordertheygoindoesmatterin
thisexample!
6
Permutation formula proof
•Therearenwaystochoosethefirst
element
–n-1waystochoosethesecond
–n-2waystochoosethethird
–…
–n-r+1waystochoosether
th
element
•Bytheproductrule,thatgivesus:
P(n,r)=n(n-1)(n-2)…(n-r+1)
22
•Analternative(andmorecommon)wayto
denoteanr-combination:
•I’lluseC(n,r)wheneverpossible,asitis
easiertowriteinPowerPoint
r
n
rnC),(
A last note on combinations