1.3: Combinations and Permutations
( \newcommand{\kernel}{\mathrm{null}\,}\)
Investigate!
You have a bunch of chips which come in five different colors: red, blue, green, purple and yellow.
- How many different two-chip stacks can you make if the bottom chip must be red or blue? Explain your answer using both the additive and multiplicative principles.
- How many different three-chip stacks can you make if the bottom chip must be red or blue and the top chip must be green, purple or yellow? How does this problem relate to the previous one?
- How many different three-chip stacks are there in which no color is repeated? What about four-chip stacks?
- Suppose you wanted to take three different colored chips and put them in your pocket. How many different choices do you have? What if you wanted four different colored chips? How do these problems relate to the previous one?
A permutation is a (possible) rearrangement of objects. For example, there are 6 permutations of the letters a, b, c:
We know that we have them all listed above —there are 3 choices for which letter we put first, then 2 choices for which letter comes next, which leaves only 1 choice for the last letter. The multiplicative principle says we multiply
Example
How many permutations are there of the letters a, b, c, d, e, f?
- Answer
-
We do NOT want to try to list all of these out. However, if we did, we would need to pick a letter to write down first. There are 6 choices for that letter. For each choice of first letter, there are 5 choices for the second letter (we cannot repeat the first letter; we are rearranging letters and only have one of each), and for each of those, there are 4 choices for the third, 3 choices for the fourth, 2 choices for the fifth and finally only 1 choice for the last letter. So there are
permutations of the 6 letters.
A piece of notation is helpful here:
Permutations of
There are
Counting Bijective Functions
How many functions
- Solution
-
Remember what it means for a function to be bijective: each element in the codomain must be the image of exactly one element of the domain. Using two-line notation, we could write one of these bijections as
What we are really doing is just rearranging the elements of the codomain, so we are creating a permutation of 8 elements. In fact, “permutation” is another term used to describe bijective functions from a finite set to itself.
If you believe this, then you see the answer must be
You can see this directly as well: for each element of the domain, we must pick a distinct element of the codomain to map to. There are 8 choices for where to send 1, then 7 choices for where to send 2, and so on. We multiply using the multiplicative principle.
Sometimes we do not want to permute all of the letters/numbers/elements we are given.
Example
How many 4 letter “words” can you make from the letters a through f, with no repeated letters?
- Solution
-
This is just like the problem of permuting 4 letters, only now we have more choices for each letter. For the first letter, there are 6 choices. For each of those, there are 5 choices for the second letter. Then there are 4 choices for the third letter, and 3 choices for the last letter. The total number of words is \(6\cdot 5\cdot 4 \cdot 3 = 360\text{.}\) This is not \(6!\) because we never multiplied by 2 and 1. We could start with \(6!\) and then cancel the 2 and 1, and thus write \(\frac{6!}{2!}\text{.}\)
In general, we can ask how many permutations exist of
objects choosing those objects from a larger collection of objects. (In the example above, and ) We write this number and sometimes call it a -permutation of elements. From the example above, we see that to compute we must apply the multiplicative principle to numbers, starting with and counting backwards. For exampleNotice again that
starts out looking like but we stop after 7. We can formally account for this “stopping” by dividing away the part of the factorial we do not want:Careful: The factorial in the denominator is not
but rather
Note that when
Counting injective functions
How many functions
- Solution
-
Note that it doesn't make sense to ask for the number of bijections here, as there are none (because the codomain is larger than the domain, there are no surjections). But for a function to be injective, we just can't use an element of the codomain more than once.
We need to pick an element from the codomain to be the image of 1. There are 8 choices. Then we need to pick one of the remaining 7 elements to be the image of 2. Finally, one of the remaining 6 elements must be the image of 3. So the total number of functions is
What this demonstrates in general is that the number of injections
where and is
Here is another way to find the number of
Now since we have a closed formula for
If we divide both sides by
Closed formula for
We say
To further illustrate the connection between combinations and permutations, we close with an example.
Example
You decide to have a dinner party. Even though you are incredibly popular and have 14 different friends, you only have enough chairs to invite 6 of them.
- How many choices do you have for which 6 friends to invite?
- What if you need to decide not only which friends to invite but also where to seat them along your long table? How many choices do you have then?
- Solution
-
- You must simply choose 6 friends from a group of 14. This can be done in
ways. We can find this number either by using Pascal's triangle or the closed formula: - Here you must count all the ways you can permute 6 friends chosen from a group of 14. So the answer is
which can be calculated as
Notice that we can think of this counting problem as a question about counting functions: how many injective functions are there from your set of 6 chairs to your set of 14 friends (the functions are injective because you can't have a single chair go to two of your friends).
How are these numbers related? Notice that
is much larger than This makes sense. picks 6 friends, but arranges the 6 friends as well as picks them. In fact, we can say exactly how much larger is. In both counting problems we choose 6 out of 14 friends. For the first one, we stop there, at 3003 ways. But for the second counting problem, each of those 3003 choices of 6 friends can be arranged in exactly ways. So now we have choices and that is exactlyAlternatively, look at the first problem another way. We want to select 6 out of 14 friends, but we do not care about the order they are selected in. To select 6 out of 14 friends, we might try this:
This is a reasonable guess, since we have 14 choices for the first guest, then 13 for the second, and so on. But the guess is wrong (in fact, that product is exactly
). It distinguishes between the different orders in which we could invite the guests. To correct for this, we could divide by the number of different arrangements of the 6 guests (so that all of these would count as just one outcome). There are precisely ways to arrange 6 guests, so the correct answer to the first question isNote that another way to write this is
which is what we had originally.
- You must simply choose 6 friends from a group of 14. This can be done in


