6.3 Permutations and Combinations Flashcards
what are two strategies in solving counting problems?
- finding the number of ways to arrange a specified number of distinct elements of a set of a particular size, where the order of the elements matters
- finding the number of ways to select a particular number of elements from a set of a particular size, where the order of the elements selected does NOT matter
In how many ways can we select three students from a group of five students to stand in line for
a picture?
First, note that the order in which we select the students matters. There are five ways to select the first student to stand at the start of the line. Once this student has been selected, there are four ways to select the second student in the line. After the first and second students have been selected, there are three ways to select the third student in the line. By the product rule, there are 5 ⋅ 4 ⋅ 3 = 60 ways to select three students from a group of five students to stand in line for a picture.
In how many ways can we arrange all five of these students in a line for a picture?
To arrange all five students in a line for a picture, we select the first student in five ways, the second in four ways, the third in three ways, the fourth in two ways, and the fifth in one way. Consequently, there are 5 ⋅ 4 ⋅ 3 ⋅ 2 ⋅ 1 = 120 ways to arrange all five students in a line for a picture.
permutation
An ordered arrangement of a set of objects
r-permutation
An ordered arrangement of r elements of a set
Let S = {1, 2, 3}. The ordered arrangement 3, 1, 2 is what?
a permutation of S
Let S = {1, 2, 3}. The ordered arrangement 3, 2 is what?
a 2-permutation of S
Let S = {a, b, c}. What are the 2-permutations of S?
The ordered arrangements a, b; a, c; b, a; b, c; c, a;
and c, b
P(n, r)
If n is a positive integer and r is an integer with 1 ≤ r ≤ n, then there are
P(n, r) = n(n − 1)(n − 2) ⋯ (n − r + 1)
r-permutations of a set with n distinct elements.
Prove P(n, r) = n(n − 1)(n − 2) ⋯ (n − r + 1)
We will use the product rule to prove that this formula is correct.
The first element of the permutation can be chosen in n ways because there are n elements in the set.
There are n − 1 ways to choose the second element of the permutation, because there are n − 1 elements left in the set after using the element picked for the first position.
Similarly, there are n − 2 ways to choose the third element, and so on, until there are exactly n − (r − 1) = n − r + 1 ways to choose the rth element.
Consequently, by the product rule, there are n(n − 1)(n − 2) ⋯ (n − r + 1) r-permutations of the set.
1 If n and r are integers with 0 ≤ r ≤ n, then P(n, r) = ?
Prove
How many ways are there to select a first-prize winner, a second-prize winner, and a third-prize winner from 100 different people who have entered a contest?
Because it matters which person wins which prize, the number of ways to pick the three prize winners is the number of ordered selections of three elements from a set of 100 elements, that is, the number of 3 permutations of a set of 100 elements.
Consequently, the
answer is
P(100, 3) = 100 ⋅ 99 ⋅ 98 = 970,200.
Suppose that there are eight runners in a race. The winner receives a gold medal, the second place finisher receives a silver medal, and the third-place finisher receives a bronze medal.
How many different ways are there to award these medals, if all possible outcomes of the race can occur and there are no ties?
The number of different ways to award the medals is the number of 3-permutations of a set with eight elements.
Hence, there are P(8, 3) = 8 ⋅ 7 ⋅ 6 = 336 possible ways to award the medals.
Suppose that a saleswoman has to visit eight different cities. She must begin her trip in a specified city, but she can visit the other seven cities in any order she wishes.
How many possible orders can the saleswoman use when visiting these cities?
The number of possible paths between the cities is the number of permutations of seven elements, because the first city is determined, but the remaining seven can be ordered arbitrarily.
Consequently, there are 7! = 7 ⋅ 6 ⋅ 5 ⋅ 4 ⋅ 3 ⋅ 2 ⋅ 1 = 5040 ways for the saleswoman to choose her tour.
If, for instance, the saleswoman wishes to find the path between the cities with minimum distance, and she computes the total distance for each possible path, she must
consider a total of 5040 paths!