Skip to main content
Mathematics LibreTexts

4.4.1: Permutations

  • Page ID
    139552
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    Three swimmers are racing in separate lanes in a swimming pool. The swimmer in the top lane is in first place, the swimmer in the bottom lane is in second place, and the swimmer in the middle lane is in third place.
    Figure 7.7 We can use permutations to calculate the number of different orders of finish in an Olympic swimming heat. (credit: “London 2012 Olympics Park Stratford London” by Gary Bembridge/Flickr, CC BY 2.0)

    Learning Objectives

    After completing this section, you should be able to:

    1. Use the Multiplication Rule for Counting to determine the number of permutations.
    2. Compute expressions containing factorials.
    3. Compute permutations.
    4. Apply permutations to solve problems.

    Swimming events are some of the most popular events at the summer Olympic Games. In the finals of each event, 8 swimmers compete at the same time, making for some exciting finishes. How many different orders of finish are possible in these events? In this section, we’ll extend the Multiplication Rule for Counting to help answer questions like this one, which relate to permutations. A permutation is an ordered list of objects taken from a given population. The length of the list is given, and the list cannot contain any repeated items.

    Applying the Multiplication Rule for Counting to Permutations

    In the case of the swimming finals, one possible permutation of length 3 would be the list of medal winners (first, second, and third place finishers). A permutation of length 8 would be the full order of finish (first place through eighth place). Let’s use the Multiplication Rule for Counting to figure out how many of each of these permutations there are.

    Example 7.4

    Using the Multiplication Rule for Counting to Find the Number of Permutations

    The final heat of Olympic swimming events features 8 swimmers (or teams of swimmers).

    1. How many different podium placements (first place, second place, and third place) are possible?
    2. How many different complete orders of finish (first place through eighth place) are possible?
    Answer

    1. Let’s start with the first place finisher. How many options are there? Since 8 swimmers are competing, there are 8 possibilities. Once that first swimmer completes the race, there are 7 swimmers left competing for second place. After the second finisher is decided, there are 6 swimmers remaining who could possibly finish in third place. Thus, there are 8 possibilities for first place, 7 for second place, and 6 for third place. The Multiplication Rule for Counting then tells us there are 8×7×6=3368×7×6=336 different ways the winners’ podium can be filled out.
    2. To look at the complete order of finish, we can continue the pattern we can see in part 1 of this example: There are 5 possibilities for fourth place, 4 for fifth place, 3 for sixth place, 2 for seventh place, and then just 1 swimmer is left to finish in eighth place. Using the Multiplication Rule for Counting, we see that there are 8×7×6×5×4×3×2×1=40,3208×7×6×5×4×3×2×1=40,320 possible orders of finish.

    Your Turn 7.4

    1.
    You have a hand of 5 cards (that happen to create what’s called a royal flush in the game of poker): 10/**/\spadesuit/**/, J/**/\spadesuit/**/, Q/**/\spadesuit/**/, K/**/\spadesuit/**/, and A/**/\spadesuit/**/. Into how many different orders can you put those cards?

    Factorials

    The pattern we see in Example 7.4 occurs commonly enough that we have a name for it: factorial.
    For any positive whole number nn, we define the factorial of nn (denoted n!n! and read "nn factorial") to be the product of every whole number less than or equal to nn. We also define 0! to be equal to one. We will use factorials in a couple of different contexts, so let's get some practice doing computations with them.

    Example 7.5

    Computing Factorials

    Compute the following:

    1. 4!4!
    2. 8!6!8!6!
    3. 9!3!4!9!3!4!
    Answer

    1. 4!=4×3×2×1=244!=4×3×2×1=24
    2. There are two ways to approach this calculation. The first way is to compute the factorials first, then divide:

      8!6!=8×7×6×5×4×3×2×16×5×4×3×2×1=40,320720=568!6!=8×7×6×5×4×3×2×16×5×4×3×2×1=40,320720=56

      However, there is an easier way! You may notice in the second step that there are several terms that can be canceled; that’s always the case whenever we divide factorials. In this case, notice that we can rewrite the numerator like this:

      8!=8×7×(6×5×4×3×2×1)=8×7×6!8!=8×7×(6×5×4×3×2×1)=8×7×6!

      With that in mind, we can proceed this way by canceling out the 6!:

      8!6!=8×7×6!6!=8×7=568!6!=8×7×6!6!=8×7=56

      That’s much easier!

    3. Let’s approach this one using our canceling technique. When we see two factorials in either the numerator or denominator, we should focus on the larger one first. So:

      9!3!4!=9×8×7×6×5×4!3!4!=9×8×7×6×53×2×1=9×8×7×5=2,5209!3!4!=9×8×7×6×5×4!3!4!=9×8×7×6×53×2×1=9×8×7×5=2,520

    Your Turn 7.5

    Compute the following:
    1.
    /**/6!/**/
    2.
    /**/\frac
    ParseError: EOF expected (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/07:_Probability/7.03:_Permutations), /content/body/div[2]/div[1]/div/span/span[1], line 1, column 3
        at wiki.page()
        at (Courses/SUNY_Schenectady_County_Community_College/SUNY_SCCC_MAT_149_Topics_In_Finite_Mathematics/04:_Sets_and_Counting/4.04:_Permutations_and_Combinations/4.4.01:_Permutations), /content/body/div/pre, line 2, column 14
    
    ParseError: EOF expected (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/07:_Probability/7.03:_Permutations), /content/body/div[2]/div[1]/div/span/span[2], line 1, column 3
        at wiki.page()
        at (Courses/SUNY_Schenectady_County_Community_College/SUNY_SCCC_MAT_149_Topics_In_Finite_Mathematics/04:_Sets_and_Counting/4.04:_Permutations_and_Combinations/4.4.01:_Permutations), /content/body/div/pre, line 2, column 14
    
    /**/
    3.
    /**/\frac
    ParseError: EOF expected (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/07:_Probability/7.03:_Permutations), /content/body/div[2]/div[2]/div/span/span[1], line 1, column 2
        at wiki.page()
        at (Courses/SUNY_Schenectady_County_Community_College/SUNY_SCCC_MAT_149_Topics_In_Finite_Mathematics/04:_Sets_and_Counting/4.04:_Permutations_and_Combinations/4.4.01:_Permutations), /content/body/div/pre, line 2, column 14
    
    ParseError: EOF expected (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/07:_Probability/7.03:_Permutations), /content/body/div[2]/div[2]/div/span/span[2], line 1, column 2
        at wiki.page()
        at (Courses/SUNY_Schenectady_County_Community_College/SUNY_SCCC_MAT_149_Topics_In_Finite_Mathematics/04:_Sets_and_Counting/4.04:_Permutations_and_Combinations/4.4.01:_Permutations), /content/body/div/pre, line 2, column 14
    
    /**/

    Permutations

    As we’ve seen, factorials can pop up when we’re computing permutations. In fact, there is a formula that we can use to make that connection explicit. Let’s define some notation first. If we have a collection of nn objects and we wish to create an ordered list of rr of the objects (where 1rn1rn), we’ll call the number of those permutations nPrnPr (read “the number of permutations of nn objects taken rr at a time”). We formalize the formula we'll use to compute permutations below.

    FORMULA

    nPr=n!(nr)!nPr=n!(nr)!

    If you wondered why we defined 0!=10!=1 earlier, it was to make formulas like this one work; if we have nn objects and want to order all of them (so, we want the number of permutations of nn objects taken nn at a time), we get nPn=n!(nn)!=n!0!=n!1=n!nPn=n!(nn)!=n!0!=n!1=n!. Next, we’ll get some practice computing these permutations.

    Example 7.6

    Computing Permutations

    Find the following numbers:

    1. The number of permutations of 12 objects taken 3 at a time
    2. The number of permutations of 8 objects taken 5 at a time
    3. The number of permutations of 32 objects taken 2 at a time
    Answer

    1. 12P3=12!(123)!=12!9!=12×11×10×9!9!=12×11×10=1,32012P3=12!(123)!=12!9!=12×11×10×9!9!=12×11×10=1,320

    2. 8P5=8!(85)!=8×7×6×5×4×3!3!=8×7×6×5×4=6,7208P5=8!(85)!=8×7×6×5×4×3!3!=8×7×6×5×4=6,720

    3. 32P2=32!(322)!=32×31×30!30!=32×31=99232P2=32!(322)!=32×31×30!30!=32×31=992

    Your Turn 7.6

    Find the following numbers:
    1.
    The number of permutations of 6 objects taken 2 at a time
    2.
    The number of permutations of 14 objects taken 4 at a time
    3.
    The number of permutations of 19 objects taken 3 at a time

    Example 7.7

    Applying Permutations

    1. A high school graduating class has 312 students. The top student is declared valedictorian, and the second-best is named salutatorian. How many possible outcomes are there for the valedictorian and salutatorian?
    2. In the card game blackjack, the dealer’s hand of 2 cards is dealt with 1 card faceup and 1 card facedown. If the game is being played with a single deck of (52) cards, how many possible hands could the dealer get?
    3. The University Combinatorics Club has 3 officers: president, vice president, and treasurer. If there are 18 members of the club, how many ways are there to fill the officer positions?
    Answer

    1. This is the number of permutations of 312 students taken 2 at a time, and 312P2=97,032312P2=97,032.
    2. We want the number of permutations of 52 cards taken 2 at a time, and 52P2=2,65252P2=2,652.
    3. Here we’re looking for the number of permutations of 18 members taken 3 at a time, and 18P3=4,89618P3=4,896.

    Your Turn 7.7

    1.
    One of the big draws at this year’s state fair is the pig race. There are 15 entrants, and prizes are given to the top three finishers. How many different combinations of top-three finishes could there be?

    Who Knew?

    Very Big Permutations

    Permutations involving relatively small sets of objects can get very big, very quickly. A standard deck contains 52 cards. So, the number of different ways to shuffle the cards—in other words, the number of permutations of 52 objects taken 52 at a time—is 52!8×106752!8×1067 (written out, that’s an 8 followed by 67 zeroes). The estimated age of the universe is only about 4×10174×1017 seconds. So, if a very bored all-powerful being started shuffling cards at the instant the universe began, it would have to have averaged at least 8×10674×10172×10508×10674×10172×1050 shuffles per second since the beginning of time to have covered every possible arrangement of a deck of cards. That means the next time you pick up a deck of cards and give it a good shuffle, it’s almost certain that the particular arrangement you created has never been created before and likely never will be created again.

    Check Your Understanding

    6.
    Compute 5!.
    7.
    Compute /**/\frac
    ParseError: EOF expected (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/07:_Probability/7.03:_Permutations), /content/body/div[2]/div[3]/div[3]/div[2]/div/div/span/span[1], line 1, column 3
        at wiki.page()
        at (Courses/SUNY_Schenectady_County_Community_College/SUNY_SCCC_MAT_149_Topics_In_Finite_Mathematics/04:_Sets_and_Counting/4.04:_Permutations_and_Combinations/4.4.01:_Permutations), /content/body/div/pre, line 2, column 14
    
    ParseError: EOF expected (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/07:_Probability/7.03:_Permutations), /content/body/div[2]/div[3]/div[3]/div[2]/div/div/span/span[2], line 1, column 2
        at wiki.page()
        at (Courses/SUNY_Schenectady_County_Community_College/SUNY_SCCC_MAT_149_Topics_In_Finite_Mathematics/04:_Sets_and_Counting/4.04:_Permutations_and_Combinations/4.4.01:_Permutations), /content/body/div/pre, line 2, column 14
    
    /**/
    .
    8.
    Compute /**/_{12}{P_3}/**/.
    9.
    Compute /**/_8{P_4}/**/.
    10.
    The standard American edition of the board game Monopoly has a deck of 15 orange Chance cards. In how many different ways could the first 4 Chance cards drawn in a game appear?

    Section 7.2 Exercises

    For the following exercises, give a whole number that’s equal to the given expression.
    1.
    3!
    2.
    9!
    3.
    /**/\frac
    ParseError: EOF expected (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/07:_Probability/7.03:_Permutations), /content/body/div[2]/div[3]/div[3]/div[7]/div/span/span[1], line 1, column 2
        at wiki.page()
        at (Courses/SUNY_Schenectady_County_Community_College/SUNY_SCCC_MAT_149_Topics_In_Finite_Mathematics/04:_Sets_and_Counting/4.04:_Permutations_and_Combinations/4.4.01:_Permutations), /content/body/div/pre, line 2, column 14
    
    ParseError: EOF expected (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/07:_Probability/7.03:_Permutations), /content/body/div[2]/div[3]/div[3]/div[7]/div/span/span[2], line 1, column 2
        at wiki.page()
        at (Courses/SUNY_Schenectady_County_Community_College/SUNY_SCCC_MAT_149_Topics_In_Finite_Mathematics/04:_Sets_and_Counting/4.04:_Permutations_and_Combinations/4.4.01:_Permutations), /content/body/div/pre, line 2, column 14
    
    /**/
    4.
    /**/\frac
    ParseError: EOF expected (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/07:_Probability/7.03:_Permutations), /content/body/div[2]/div[3]/div[3]/div[8]/div/span/span[1], line 1, column 2
        at wiki.page()
        at (Courses/SUNY_Schenectady_County_Community_College/SUNY_SCCC_MAT_149_Topics_In_Finite_Mathematics/04:_Sets_and_Counting/4.04:_Permutations_and_Combinations/4.4.01:_Permutations), /content/body/div/pre, line 2, column 14
    
    ParseError: EOF expected (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/07:_Probability/7.03:_Permutations), /content/body/div[2]/div[3]/div[3]/div[8]/div/span/span[2], line 1, column 2
        at wiki.page()
        at (Courses/SUNY_Schenectady_County_Community_College/SUNY_SCCC_MAT_149_Topics_In_Finite_Mathematics/04:_Sets_and_Counting/4.04:_Permutations_and_Combinations/4.4.01:_Permutations), /content/body/div/pre, line 2, column 14
    
    /**/
    5.
    /**/\frac
    ParseError: EOF expected (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/07:_Probability/7.03:_Permutations), /content/body/div[2]/div[3]/div[3]/div[9]/div/span/span[1], line 1, column 3
        at wiki.page()
        at (Courses/SUNY_Schenectady_County_Community_College/SUNY_SCCC_MAT_149_Topics_In_Finite_Mathematics/04:_Sets_and_Counting/4.04:_Permutations_and_Combinations/4.4.01:_Permutations), /content/body/div/pre, line 2, column 14
    
    ParseError: EOF expected (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/07:_Probability/7.03:_Permutations), /content/body/div[2]/div[3]/div[3]/div[9]/div/span/span[2], line 1, column 3
        at wiki.page()
        at (Courses/SUNY_Schenectady_County_Community_College/SUNY_SCCC_MAT_149_Topics_In_Finite_Mathematics/04:_Sets_and_Counting/4.04:_Permutations_and_Combinations/4.4.01:_Permutations), /content/body/div/pre, line 2, column 14
    
    /**/
    6.
    /**/\frac
    ParseError: EOF expected (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/07:_Probability/7.03:_Permutations), /content/body/div[2]/div[3]/div[3]/div[10]/div/span/span[1], line 1, column 3
        at wiki.page()
        at (Courses/SUNY_Schenectady_County_Community_College/SUNY_SCCC_MAT_149_Topics_In_Finite_Mathematics/04:_Sets_and_Counting/4.04:_Permutations_and_Combinations/4.4.01:_Permutations), /content/body/div/pre, line 2, column 14
    
    ParseError: EOF expected (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/07:_Probability/7.03:_Permutations), /content/body/div[2]/div[3]/div[3]/div[10]/div/span/span[2], line 1, column 3
        at wiki.page()
        at (Courses/SUNY_Schenectady_County_Community_College/SUNY_SCCC_MAT_149_Topics_In_Finite_Mathematics/04:_Sets_and_Counting/4.04:_Permutations_and_Combinations/4.4.01:_Permutations), /content/body/div/pre, line 2, column 14
    
    /**/
    7.
    /**/\frac
    ParseError: EOF expected (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/07:_Probability/7.03:_Permutations), /content/body/div[2]/div[3]/div[3]/div[11]/div/span/span[1], line 1, column 3
        at wiki.page()
        at (Courses/SUNY_Schenectady_County_Community_College/SUNY_SCCC_MAT_149_Topics_In_Finite_Mathematics/04:_Sets_and_Counting/4.04:_Permutations_and_Combinations/4.4.01:_Permutations), /content/body/div/pre, line 2, column 14
    
    ParseError: EOF expected (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/07:_Probability/7.03:_Permutations), /content/body/div[2]/div[3]/div[3]/div[11]/div/span/span[2], line 1, column 3
        at wiki.page()
        at (Courses/SUNY_Schenectady_County_Community_College/SUNY_SCCC_MAT_149_Topics_In_Finite_Mathematics/04:_Sets_and_Counting/4.04:_Permutations_and_Combinations/4.4.01:_Permutations), /content/body/div/pre, line 2, column 14
    
    /**/
    8.
    /**/\frac
    ParseError: EOF expected (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/07:_Probability/7.03:_Permutations), /content/body/div[2]/div[3]/div[3]/div[12]/div/span/span[1], line 1, column 3
        at wiki.page()
        at (Courses/SUNY_Schenectady_County_Community_College/SUNY_SCCC_MAT_149_Topics_In_Finite_Mathematics/04:_Sets_and_Counting/4.04:_Permutations_and_Combinations/4.4.01:_Permutations), /content/body/div/pre, line 2, column 14
    
    ParseError: EOF expected (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/07:_Probability/7.03:_Permutations), /content/body/div[2]/div[3]/div[3]/div[12]/div/span/span[2], line 1, column 3
        at wiki.page()
        at (Courses/SUNY_Schenectady_County_Community_College/SUNY_SCCC_MAT_149_Topics_In_Finite_Mathematics/04:_Sets_and_Counting/4.04:_Permutations_and_Combinations/4.4.01:_Permutations), /content/body/div/pre, line 2, column 14
    
    /**/
    9.
    /**/_4{P_3}/**/
    10.
    /**/_7{P_5}/**/
    11.
    /**/_{12}{P_{10}}/**/
    12.
    /**/_{14}{P_{10}}/**/
    13.
    /**/_{10}P{_8}/**/
    14.
    /**/_{15}{P_{11}}/**/
    The following exercises are about the card game euchre, which uses a partial standard deck of cards: It only has the cards with ranks 9, 10, J, Q, K, and A for a total of 24 cards. Some variations of the game use the 8s or the 7s and 8s, but we’ll stick with the 24-card version.
    15.
    A euchre hand contains 5 cards. How many ways are there to receive a 5-card hand (where the order in which the cards are received matters, i.e., 9/**/\heartsuit/**/, J/**/\heartsuit/**/, /**/{\text{K}}\clubsuit /**/, /**/9\spadesuit /**/, /**/10\spadesuit /**/ is different from /**/9\spadesuit /**/ J/**/\heartsuit/**/, 9/**/\heartsuit/**/, /**/{\text{K}}\clubsuit /**/, /**/10\spadesuit /**/?
    16.
    After all 4 players get their hands, the remaining 4 cards are placed facedown in the center of the table. How many arrangements of 4 cards are there from this deck?
    17.
    Euchre is played with partners. How many ways are there for 2 partners to receive 5-card hands (where the order in which the cards are received matters)?
    18.
    How many different arrangements of the full euchre deck are possible (i.e., how many different shuffles are there)?
    The following exercises involve a horse race with 13 entrants.
    19.
    How many possible complete orders of finish are there?
    20.
    An exacta bet is one where the player tries to predict the top two finishers in order. How many possible exacta bets are there for this race?
    21.
    A trifecta bet is one where the player tries to predict the top three finishers in order. How many possible trifecta bets are there for this race?
    22.
    A superfecta bet is one where the player tries to predict the top four finishers in order. How many possible superfecta bets are there for this race?

    This page titled 4.4.1: Permutations is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by OpenStax via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.