Permutation
calculator.
Count the ways to put r of n things in order, or to rearrange the letters of a word.
- Order ignored, C(n, r)
- 120
- Repeats allowed, nʳ
- 1,000
- Orders of 3 items
- 6
There are 720 ways to fill 3 ordered places from 10 different items, using each item at most once. If order did not matter there would be 120, which is 6 times fewer.
Choices for each place
Place 1 has 10 choices and each later place has one fewer: 10, 9, 8. Multiplying them gives 720.
Ordered and unordered counts for k up to 3
| k | P(10, k) | C(10, k) |
|---|---|---|
| 0 | 1 | 1 |
| 1 | 10 | 10 |
| 2 | 90 | 45 |
| 3 | 720 | 120 |
720
Working
- 1Permutations of r from n: divide the factorialsP(n, r) =n!(n − r)!
- 2Cancel the bottom, leaving 3 falling factorsP(10, 3) = 10 × 9 × 8
- 3Multiply= 720
- 4Check: each choice of 3 items can be put in order in 6 ways3!×C(10, 3)=6×120=720
Count several words at once
Arrangements of each word
| Word | Letters | Arrangements |
|---|---|---|
| BANANA | 6 | 60 |
| SUCCESS | 7 | 420 |
| BOOKKEEPER | 10 | 151, |
| MISSISSIPPI | 11 | 34, |
How it's worked out
A permutation is an arrangement where order matters. Ann first and Ben second is a different result from Ben first and Ann second. The first place can take any of the n items, the second any of the n − 1 left, and so on until r places are filled. Multiplying those choices is the fundamental counting principle.
Here , read n factorial, means n times every whole number below it, down to 1. The bottom of the fraction cancels everything after the r-th factor, so you only multiply r numbers. When r equals n you get , every order of all the items. When r is larger than n the answer is 0, because a place would have to reuse an item. For example, P(3, 5) is 0.
Ordered against unordered. Every group of r items can be put in order in r factorial ways. So the ordered count is r factorial times the number of unordered groups, C(n, r). The tool uses that fact as the check in its working.
Letters that repeat. A word with n letters has n factorial orders if every letter is treated as different. Swapping two copies of the same letter gives the same word, so each letter that appears k times divides the count by .
Worked examples
Coach Rivera ranks the top three of eight runners
Eight runners race for gold, silver and bronze. Gold can go to any of 8, silver to any of the 7 left, and bronze to any of the 6 after that. That gives 336 different podiums.
If the coach only cared which three runners made the podium, there would be 56 groups. Each group can stand in 6 orders, which is why the ordered count is 6 times larger.
Priya sets a 4-digit code with no repeated digit
A keypad has 10 digits and the code uses 4 of them, each at most once. Order matters, since 1234 and 4321 are different codes. So there are 5,040 codes.
If digits may repeat, each of the 4 places has all 10 digits, which gives 10,000. Banning repeats keeps 5,040 of those 10,000 codes, about half.
How many ways to rearrange BOOKKEEPER?
BOOKKEEPER has 10 letters. E appears 3 times, while O and K each appear twice. Treating every letter as different gives 10 factorial orders, 3,628,800 of them.
Dividing out the swaps of identical letters leaves 151,200 different strings. The check places the letters one group at a time: the three E's go into 120 possible sets of spots, then the rest follow, and the product is 151,200 again.
Reading your result
Round tables lose one factor. Around a circle, turning everyone one seat gives the same seating. So n people around a table/07%3A_Sets_and_Counting/7.04%3A_Circular_Permutations_and_Permutations_with_Similar_Elements) have the factorial of n − 1 seatings, not . Six guests can sit in a row in 720 orders but around a table in only 120.
The numbers get large. A deck of 52 cards can be shuffled into 52 factorial orders. That is a 68-digit number, and the tool keeps every digit, so you can divide or compare it exactly.
Big counts are still exact. OpenStax counts the letters of DISTINCT, with I and T each twice, as 8 factorial divided by 2 factorial twice. The tool gives the same 10,080, and for BANANA, with three A's and two N's, it gives 60.
Common mistakes
- Using a permutation for a committee. If swapping two chosen people changes nothing, order does not matter and you want C(n, r). Roles such as president and treasurer make order matter again.
- Forgetting that repeats change the formula. P(n, r) uses each item at most once. A PIN that may reuse digits has nʳ codes instead.
- Dividing for repeated letters when there are none. Only letters that appear more than once divide the count. A letter that appears once divides by 1 factorial, which is 1 and changes nothing.
- Treating a round table like a row. Counting n factorial orders for a circle counts every seating n times, once for each turn of the table.