<meta http-equiv="refresh" content="1; url=/nojavascript/">
You are viewing an older version of this Concept. Go to the latest version.

# Permutations

%
Progress
Practice Permutations
Progress
%
Permutations

What if you were picked to judge the pie contest at your local fair? You can pick three to move on to the finals from 10 entries. How many ways could you pick your three favorites? After completing this Concept, you'll be able to calculate permutations like this one using factorials.

### Guidance

In this lesson we’ll be looking at ways of arranging things. To illustrate what we mean by this, let’s look at a simple example. Think about choosing your favorite color from the following list of choices; red, blue, green, yellow, pink, purple, orange, brown, black . Clearly there are nine different colors, so there are nine possible choices you could make.

Now think about choosing your top three colors in order of preference. There are many different ways you can choose the top three. You might choose red as your favorite, followed by black, then green. Someone else might choose the same three colors as you, but in a different order! When you are choosing items from a list and the order in which you choose them is important , the arrangement is called a permutation . How many different permutations do you think there are in this situation?

In this lesson, we’ll use counting methods to determine how many permutations a given situation has. We’ll also discover a formula to calculate permutations when counting alone is impractical.

Counting Permutations

In simple cases, sometimes it’s easiest to calculate permutations by just listing all the possibilities and counting them. Let’s examine a situation where it is relatively straightforward to do that.

#### Example A

Nadia and Peter are going to watch two movies on a rainy Saturday. Nadia will choose the first movie, and Peter gets to choose the second. The four movies they have to choose from are The Lion King, Aladdin, Toy Story and Pinocchio. Given that Peter will choose a different movie than Nadia, how many permutations are there for the movies they watch?

Solution

Since the order in which they watch the movies is important, and they don’t plan to choose the same movie twice, we can list all the different possibilities in a table:

First Movie Second Movie
Lion King Toy Story
Lion King Pinocchio
Toy Story Lion King
Toy Story Pinocchio
Pinocchio Lion King
Pinocchio Toy Story

You can see that this table contains all the possibilities for the situation. There are four movies for Nadia to choose from. For every movie that Nadia chooses first, Peter has three choices left for his movie. By simply counting the rows in the table you can see that there are 12 permutations in this situation.

#### Example B

I have 5 cards with the numbers 1 through 5 on them. I take three cards and arrange them to form a 3-digit number. How many 3-digit numbers can I make?

Since the numbers we can make fit a numerical ordering pattern, we can list the possibilities in increasing order:

$& 123 \ 124 \ 125 \ 132 \ 134 \ 135 \ 142 \ 143 \ 145 \ 152 \ 153 \ 154\\& 213 \ 214 \ 215 \ 231 \ 234 \ 235 \ 241 \ 243 \ 245 \ 251 \ 253 \ 254\\& 312 \ 314 \ 315 \ 321 \ 324 \ 325 \ 341 \ 342 \ 345 \ 351 \ 352 \ 354\\& 412 \ 413 \ 415 \ 421 \ 423 \ 425 \ 431 \ 432 \ 435 \ 451 \ 452 \ 453\\& 512 \ 513 \ 514 \ 521 \ 523 \ 524 \ 531 \ 532 \ 534 \ 541 \ 542 \ 543$

By arranging the table this way, you can see how the number of remaining choices decreases as we choose numbers. There are five choices for the first number, four choices for the second number and three choices for the third number. Counting the table entries gives a total of 60 permutations .

If we look closely at the last two examples we can see a pattern start to appear. Mathematicians love patterns—they tend to lead to formulas, which make life much easier! After all, why spend hours counting possibilities when a formula can calculate them in seconds?

In example A, Nadia had four choices and Peter had three. The number of permutations was $4 \times 3 = 12.$

In example B there were 5 choices for the first digit, followed by 4 for the second digit, and then 3 for the third digit. The total number of permutations was $5 \times 4 \times 3 = 60$ .

In the introduction, we thought about picking our top three choices from a list of nine colors. You should now be able to do that. Even without listing all the possibilities, you can see that you have 9 choices for your favorite, 8 choices for your second favorite, and 7 choices for your third. The number of permutations is thus $9 \times 8 \times 7 = 504$ .

Factorial Notation

Look again at the color list in the introduction, and think this time about writing down every color in order of preference. You would have 9 choices for your favorite, followed by 8 choices for your second favorite, then 7, then 6, then 5, and so on. To determine the number of permutations for any possible list, we would perform the following calculation:

$\text{Color Permutations} = 9 \times 8 \times 7 \times 6 \times 5 \times 4 \times 3 \times 2 \times 1$

This sort of pattern crops up a great deal in statistics, probability and number theory. It’s so common that it has its own notation: $4 \times 3 \times 2 \times 1$ is written as 4! and is called four factorial . So the number of color permutations above is nine factorial = 9! = 362,880.

So what happens when we only want the first few terms in a factorial? For example, the number of permutations for arranging ALL the colors is 362,880, but the number of permutation for the top three is 504.

One way to get this result is to divide one factorial by another. Look at nine factorial divided by six factorial:

$\frac{9!}{6!} = \frac{9 \times 8 \times 7 \times \cancel{6} \times \cancel{5} \times \cancel{4} \times \cancel{3} \times \cancel{2} \times \cancel{1}}{\cancel{6} \times \cancel{5} \times \cancel{4} \times \cancel{3} \times \cancel{2} \times \cancel{1}} = 9 \times 8 \times 7 = 504$

The terms in six factorial cancel out all but the first three terms in nine factorial. You should see that if we wanted the first four terms we would divide by 5! , or for only the first two terms we would divide by 7! . In general, however many terms we want to keep, we divide by the factorial of the quantity:

$(number \ of \ items \ in \ list) - (number \ of \ items \ we \ are \ choosing)$

So to get the first five terms in twelve factorial we would use the formula $\frac{12!}{(12-5)!} = \frac{12!}{7!}$ .

Formulas like this are useful if you have a calculator that can handle factorials: you can just type in $\frac{12!}{7!}$ instead of $12 \times 11 \times 10 \times 9 \times 8$ . However, some factorials are too big for some calculators to handle, so in those cases you would need to simplify the fraction and do the multiplication by hand.

#### Example C

How many ways can Dale choose his favorite 5 songs from the current Billboard Hot $100^{TM}$ ?

Solution

To find the answer, consider how many choices he has at each stage. For his first choice he has 100 songs to choose from, then 99, then 98 and so on. We need the first 5 terms only, so our calculation is:

$\text{Permutations} = \frac{100!}{(100-5)!} = \frac{100!}{95!} &= 100 \times 99 \times 98 \times 97 \times 96 \\ &= 9,034,502,400$

Notice that that’s a pretty big number – far too large to count in a table! This is why we need formulas to help us count permutations.

Finding Permutations Using a Formula

We’ve just seen that a formula for determining the number of permutations for choosing 3 objects from a list of 9 objects is:

$\frac{9!}{6!} = \frac{9 \times 8 \times 7 \times \cancel{6} \times \cancel{5} \times \cancel{4} \times \cancel{3} \times \cancel{2} \times \cancel{1}}{\cancel{6} \times \cancel{5} \times \cancel{4} \times \cancel{3} \times \cancel{2} \times \cancel{1}} = 9 \times 8 \times 7 = 504 \ \text{permutations}$

Now we’re ready to come up with a general formula for determining permutations. When we are choosing $r$ ordered items from a group of $n$ items, the number of permutations is given by the first $r$ terms in $n!$ We use the notation $_nP_r$ for this, and the general form for calculating permutations is:

${_n}P_r = \frac{n!}{(n-r)!}$

#### Example D

How many ways are there to choose a 5-song mix from a CD containing 12 tracks?

Solution

Choosing 5 from 12: $_{12}P_5 =\frac{12!}{(12-5)!}=\frac{12!}{7!} =12 \times 11 \times 10 \times 9 \times 8 = 95,040 \ ways$

Watch this video for help with the Examples above.

### Vocabulary

• A permutation is when we are choosing $r$ ordered items from a group of $n$ items, where the order chosen matters. The number of permutations is given by the formula:

${_n}P_r = \frac{n!}{(n-r)!}$

### Guided Practice

How many 3-letter “words” can be made from the letters in “computer”? (The words do NOT need to be real, or even pronounceable – for example “rtp” would count as a word)

Solution

Choosing 3 from 8: $_8P_3 =\frac{8!}{(8-3)!}=\frac{8!}{5!} =8 \times 7 \times 6 = 336 \ words$

### Practice

1. In how many ways can the letters $a, b, c, d, e$ be arranged?
2. In how many ways can the digits 1, 2, 3, 4, 5, 6, 7, 8, 9 be arranged?
3. From a collection of 12 books, 5 are to be selected and placed in a particular order on a shelf. How many arrangements are possible?
4. 3 cards are taken at random from a deck of 52 cards and laid in a row. How many possible outcomes are there for the card arrangements?
5. How many distinct 3-letter permutations can you make from the letters in the word HEXAGON?
6. How many distinct 2-letter permutations can you make from the letters in the word GEESE?
7. A jukebox has 50 songs on it. If \$1.00 pays for three songs, how many permutations are there for choosing 3 different songs?

For problems 8-16, evaluate the following:

1. $_3P_1$
2. $_7P_1$
3. $_6P_2$
4. $_8P_8$
5. $_9P_3$
6. $_7P_3$
7. $_{19}P_7$
8. $_{99}P_3$
9. $_3P_0$