Overview

Permutations and combinations are the basic tools of counting.

Many contest problems ask us to count the number of ways to choose, arrange, or assign objects. The main difficulty is usually deciding whether order matters.

If order matters, we usually use permutations. If order does not matter, we usually use combinations.

This module introduces the two most important counting expressions:

nPr{}^nP_r

and

(nr).\binom{n}{r}.

These are often written as nPrnPr and nCrnCr.

Motivation

Suppose there are 55 students:

A,B,C,D,E.A,B,C,D,E.

If we want to choose 22 students for a committee, then the order does not matter. Choosing AA and BB is the same as choosing BB and AA.

So this is a combination problem.

However, if we want to choose a president and vice-president, then order does matter. Choosing AA as president and BB as vice-president is different from choosing BB as president and AA as vice-president.

So this is a permutation problem.

The first question in almost every counting problem should be:

Does order matter?

Factorials

For a positive integer nn, define

n!=n(n−1)(n−2)⋯2(1).n!=n(n-1)(n-2)\cdots 2(1).

For example,

5!=5(4)(3)(2)(1)=120.5!=5(4)(3)(2)(1)=120.

We also define

0!=1.0!=1.

This may seem strange at first, but it makes many counting formulas work cleanly.

Factorials appear whenever we arrange distinct objects.

For example, the number of ways to arrange 55 distinct books in a row is

5!.5!.

Permutations

A permutation is an ordered selection.

The number of ways to choose and arrange rr objects from nn distinct objects is

nPr=n!(n−r)!.{}^nP_r=\frac{n!}{(n-r)!}.

This formula appears because we have:

  • nn choices for the first position
  • n−1n-1 choices for the second position
  • n−2n-2 choices for the third position and so on

As such

nPr=n(n−1)(n−2)⋯(n−r+1).{}^nP_r=n(n-1)(n-2)\cdots(n-r+1).

Example 1

How many ways are there to choose a president, vice-president, and secretary from 88 students?

The roles are distinct, so order matters.

We need to arrange 33 students chosen from 88:

8P3=8(7)(6)=336.{}^8P_3=8(7)(6)=336.

So there are 336336 possible choices.

Combinations

A combination is an unordered selection.

The number of ways to choose rr objects from nn distinct objects is

(nr)=n!r!(n−r)!.\binom{n}{r} = \frac{n!}{r!(n-r)!}.

This counts selections where order does not matter.

Example 2

How many ways are there to choose 33 students from 88 students for a committee?

The committee has no roles, so order does not matter.

Therefore the answer is

(83)=8!3!5!=56.\binom{8}{3} = \frac{8!}{3!5!} = 56.

So there are 5656 possible committees.

Relationship Between Permutations and Combinations

Permutations and combinations are closely related.

First choose rr objects from nn objects:

(nr).\binom{n}{r}.

Then arrange those rr chosen objects:

r!.r!.

Therefore,

nPr=(nr)r!.{}^nP_r=\binom{n}{r}r!.

This identity is useful because many problems can be solved by thinking:

First choose the objects, then arrange them.

Choosing Then Arranging

A very common counting strategy is:

  1. Choose the objects involved
  2. Arrange the chosen objects

Example 3

How many 44-letter arrangements can be made from the letters A,B,C,D,E,FA,B,C,D,E,F if no letter is repeated?

First choose the 44 letters:

(64).\binom{6}{4}.

Then arrange them:

4!.4!.

So the number of arrangements is

(64)4!=15(24)=360.\binom{6}{4}4!=15(24)=360.

This is the same as

6P4=6(5)(4)(3)=360.{}^6P_4=6(5)(4)(3)=360.

When Repetition Is Allowed

If repetition is allowed, the formulas change.

For example, the number of 44-digit strings using digits 00 through 99, where repetition is allowed, is

104.10^4.

This is because each of the 44 positions has 1010 choices.

If the first digit cannot be 00, then there are:

  • 99 choices for the first digit
  • 1010 choices for each of the remaining three digits

So the number of 44-digit positive integers allowing repeated digits is

9(10)(10)(10)=9000.9(10)(10)(10)=9000.

Worked Examples

Example 4

How many ways are there to arrange 55 people in a row?

All 55 people are distinct, and order matters.

The answer is

5!=120.5!=120.

Example 5

How many ways are there to choose 44 cards from a standard 5252 card deck?

The order in which the cards are chosen does not matter.

So the answer is

(524).\binom{52}{4}.

Example 6

How many ways are there to choose and arrange 44 runners from 1010 runners into first, second, third, and fourth place?

The positions are distinct, so order matters.

The answer is

10P4=10(9)(8)(7)=5040.{}^{10}P_4 = 10(9)(8)(7) = 5040.

Example 7

A club has 1212 members. How many ways are there to choose 33 members for a committee and then choose one of those committee members as chair?

First choose the committee:

(123).\binom{12}{3}.

Then choose the chair from the 33 committee members:

3.3.

So the total number of ways is

(123)3.\binom{12}{3}3.

Since

(123)=220,\binom{12}{3}=220,

the answer is

220(3)=660.220(3)=660.

Key Contest Insight

The most important decision is whether order matters.

If order matters, use permutations or arrange objects directly.

If order does not matter, use combinations.

If a problem involves both choosing and assigning roles, separate the process into steps:

  • Choose the objects
  • Then arrange or assign them

This helps prevent overcounting.

Strategy Tips

  • Ask whether order matters
  • Use factorials for arranging distinct objects
  • Use nPrnPr for ordered selections without repetition
  • Use nCrnCr for unordered selections
  • If repetition is allowed, count choices position by position
  • Break complicated problems into smaller choices
  • Be careful not to count the same outcome multiple times

Common Pitfalls

  • Using nPrnPr when order does not matter
  • Using nCrnCr when order does matter
  • Forgetting that repeated objects require different handling
  • Treating a committee as ordered when it is unordered
  • Forgetting restrictions such as no leading zero
  • Multiplying choices without checking whether earlier choices affect later choices

Practice Problems

StatusSourceProblem NameDifficultyTags
Mastering AMC 8Medium
Show TagsPermutations
Mastering AMC 8Medium
Show TagsPermutations
Mastering AMC 8Medium
Show TagsPermutations
Mastering AMC 8Medium
Show TagsPermutations
Mastering AMC 8Medium
Show TagsPermutations
Mastering AMC 8Medium
Show TagsPermutations
Mastering AMC 8Medium
Show TagsPermutations
Mastering AMC 8Medium
Show TagsPermutations
Mastering AMC 8Medium
Show TagsPermutations
Mastering AMC 8Medium
Show TagsPermutations
Mastering AMC 8Medium
Show TagsPermutations
Mastering AMC 8Medium
Show TagsCombinations
Mastering AMC 8Medium
Show TagsCombinations
Mastering AMC 8Medium
Show TagsCombinations
Mastering AMC 8Medium
Show TagsCombinations
Mastering AMC 8Medium
Show TagsCombinations
Mastering AMC 8Medium
Show TagsCombinations
Mastering AMC 8Medium
Show TagsCombinations
Mastering AMC 8Medium
Show TagsWord Rearrangements
Mastering AMC 8Medium
Show TagsWord Rearrangements
Mastering AMC 8Medium
Show TagsWord Rearrangements

Module Progress:

Join the Discord Community!

Stuck on a problem, or don't understand a module? Join the Discord and get help with your doubts while making more math friends.