Permutation
Study guides: Exam P-1, Exam ACIA-CAPSTONE
A Permutation is an ordered arrangement of distinct objects. The number of permutations of k objects chosen from n distinct objects, {}_{n}P_{k}, is
{}_{n}P_{k} = n \times (n-1) \times \cdots \times (n-k+1)
{}_{n}P_{k} = \frac{n!}{(n-k)!}
n!, read "nfactorial", isn \times (n-1) \times \cdots \times 2 \times 1, with0! = 1.k \le n.
In a race with 10 runners, how many ways are there to award gold, silver and bronze medals?
- Any of the 10 runners could win gold. Once gold is awarded, there are 9 remaining runners who could win silver, then 8 who could win bronze.
{}_{10}P_{3} = 10 \times 9 \times 8 = 720.
Permutations of all n objects
When all n objects are arranged, k = n and the number of permutations is
{}_{n}P_{n} = n!
A 4-digit PIN is chosen at random, each digit from 0 to 9. What is the probability that its 4 digits are all different?
- The sample space is every 4-digit PIN. Digits may repeat, so
|S| = 10^4 = 10{,}000.- A PIN with all digits different is an ordered arrangement of 4 of the 10 digits, so
|E| = {}_{10}P_{4} = 10 \times 9 \times 8 \times 7 = 5{,}040.- The probability is
P(E) = \frac{5{,}040}{10{,}000} = 0.504.
Arrangements with repeated objects
When the n objects are not all distinct, arranging identical objects among themselves produces no new arrangement. If there are r types of object, the number of distinct arrangements of all n is
\frac{n!}{n_1!\, n_2! \cdots n_r!}
n_iis the number of identical objects of typei, withn_1 + n_2 + \cdots + n_r = n.
How many distinct arrangements are there of the letters in LOSS?
- There are
n = 4letters: one L, one O and two S's.- Swapping the two S's gives the same arrangement, so divide the
4!arrangements by2!.- There are
\frac{4!}{1!\,1!\,2!} = \frac{24}{2} = 12distinct arrangements.
Permutations that leave some objects in place
The number of permutations of n distinct objects that leave a specified set of k objects in their original positions is
(n-k)!
The other n-k objects can be arranged in any order.
Arrangements around a circle
The number of distinct arrangements of n distinct objects around a circle, counting arrangements that differ only by a rotation as the same, is
(n-1)!
Seat one object anywhere, then arrange the other n-1 relative to it.
Objects that must be adjacent
When k particular objects must be adjacent, glue them into a single block. The block and the other n-k objects are n-k+1 units to arrange, and the objects inside the block can be ordered in k! ways, so the number of arrangements is
(n-k+1)! \times k!