Skip to main content
Mathematics LibreTexts

Permutations and Combinations

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

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

    \( \newcommand{\dsum}{\displaystyle\sum\limits} \)

    \( \newcommand{\dint}{\displaystyle\int\limits} \)

    \( \newcommand{\dlim}{\displaystyle\lim\limits} \)

    \( \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{\longvect}{\overrightarrow}\)

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

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    Permutations and Combinations

     

    The previous section covered selections of one item for each decision.  Now choices include more than one item selected with or without replacement.

    With replacement means the same item can be chosen more than once.

    Without replacement means the same item cannot be selected more than once.

    Example 1: 

    A PIN code at your bank is made up of 4 digits, with replacement.  (The same digit can be selected more than once)

            10 X 10 X 10 X 10 = 10,000 combinations are possible.

     

    The PIN code is an example when order is important.  The PIN code 1234 is different from the PIN code 4321.

    When selecting more than one item without replacement and order is important, it is called a Permutation.  When order is not important, it is called a Combination.

    Example 2: 

    There are 10 entries in a contest.  Only three will win, 1st, 2nd, or 3rd  prize.  What are the possible results? 

    Order does matter and there is no replacement.

            10 X 9 X 8 = 720 possible outcomes

    Or 720 permutations of 10 items chosen 3 at a time.

     

    There is a formula for Permutations.  In the last example         

              10!       =   10!   = 720 
            (10 – 3)!       7!

                n!                 n = total number of items
            (n – r )!           r = number of chosen items

     

    Represented by:       

             Pr ,            P(r, n) ,            P n , r  

     

    Example 3: 

    A softball league has 7 teams, what are the possible ways of ranking the teams?

    n = 7, r = 7                 

                7!        = 5040
             (7– 7)!                                     Recall 0! = 1

    What happens if order is not important?

     

    Example 4: 

    From a group of 4 people (Abe, Bob, Carol, Dee.), 3 are selected to form a committee.  How many combinations are there? 

     

    If we use the previous formula: 

             4 !     =   24   
            (4-3)!

    we get too many.   Since the committee membership is not ranked, order isn't important.  Since the order isn't important, we can arbitrarily sort the results alphabetically to get

            ABC, ABD, ACD, BCD.

                                                     

     

     The formula for combinations is   

                n !        
             (n – r)!r!  

    Is represented by   

            Cr , C(r, n) , C ­n , r

                                                                  

    We divide by r! to reduce the number of combinations repeated since order is not important.

     

    Example 5: 

    A group of 12 women and 5 men are used to pick a committee of 6 people.  What is the possible outcomes if

    a)     5 women and 1 man is selected

    b)     any mixture of women and men

     

    a)     From the FCP we know that two decisions will be made, choosing 5 women out of 12 and choosing 1 man out of 5.  Since order does not matter and there is no replacement, we use combinations.

               12!          X        5!      =   792 X 5 = 3,960   combinations
            (12 - 5)!5!          (5-1)!1!

     

    b)     Any combination of men and women means only one choice or category is made, people.

     

              17!             =    17!     =   12,376
            (17-6)!6!             11!6!

     

    Class exercise:         Find  r , for 

              r,  n = 5                  r ,  n = 4             

            r ,  n = 3        r ,  n = 2         r ,  n = 1

     

    R = 0               1                      1                                  1                      1                      1

    R = 1               5                      4                                  3                      2

    R = 2               10                    6                                  3                      1

    R = 3               10                    4                                  1

    R = 4               5                      1

    R = 5               1

     

    Pascal’s Triangle uses combinations to find coefficients.

     

     

    Example 7: 

    How many five-card hands containing exactly one pair are possible?

     

     


    Back to Counting and Probability Main Page


    Permutations and Combinations is shared under a not declared license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?