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.
Watch This
CK-12 Foundation: Permutations
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 | Aladdin |
Lion King | Toy Story |
Lion King | Pinocchio |
Aladdin | Lion King |
Aladdin | Toy Story |
Aladdin | Pinocchio |
Toy Story | Lion King |
Toy Story | Aladdin |
Toy Story | Pinocchio |
Pinocchio | Lion King |
Pinocchio | Aladdin |
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:
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
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 .
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 .
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:
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: 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:
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:
So to get the first five terms in twelve factorial we would use the formula .
Formulas like this are useful if you have a calculator that can handle factorials: you can just type in instead of . 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 ?
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:
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:
Now we’re ready to come up with a general formula for determining permutations. When we are choosing ordered items from a group of items, the number of permutations is given by the first terms in We use the notation for this, and the general form for calculating permutations is:
Example D
How many ways are there to choose a 5-song mix from a CD containing 12 tracks?
Solution
Choosing 5 from 12:
Watch this video for help with the Examples above.
CK-12 Foundation: Permutations
Vocabulary
- A permutation is when we are choosing ordered items from a group of items, where the order chosen matters. The number of permutations is given by the formula:
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:
Explore More
- In how many ways can the letters be arranged?
- In how many ways can the digits 1, 2, 3, 4, 5, 6, 7, 8, 9 be arranged?
- 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?
- 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?
- How many distinct 3-letter permutations can you make from the letters in the word HEXAGON?
- How many distinct 2-letter permutations can you make from the letters in the word GEESE?
- 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: