Permutations: Definition, Method and Examples

MathPublished

Permutations: Definition, Formulas, and Examples

A permutation counts arrangements where order matters. Selecting rr different objects from nn without repetition gives nPr=n!(n−r)!^nP_r = \dfrac{n!}{(n-r)!}, while repeated choices use a different product.


When scheduling performances, setting an alarm code, or awarding first place, changing the sequence changes the result completely.

What is a permutation?

A permutation is a specific arrangement of objects where the exact sequence of selection is important.


A permutation is a mathematical arrangement where the exact order of the items matters.


If you change the sequence of the items, you create an entirely new arrangement. For example, arranging the letters A and B gives two distinct permutations.

Two blocks labelled A and B shown side by side as Arrangement 1, followed by B and A as Arrangement 2, showing that order creates different outcomes.


For small numbers of items, you can find all permutations by using systematic listing strategies. As the numbers grow larger, formulas and multiplication rules become necessary.

Test whether order matters

Before counting arrangements, you must confirm that the sequence of choices actually changes the result.


If changing the sequence changes the outcome, the problem is a permutation. Passwords, PINs, phone numbers, and race finish lines all depend on strict order. A digital passcode of 419419 is not the same as 194194.


If rearranging the items does not change the outcome, the problem requires a different counting method. Mixing bananas and strawberries yields the same smoothie regardless of which fruit goes into the blender first.

Count arrangements by multiplication

You can count permutations step by step by finding the number of choices available for each position.


This relies on the product rule for counting, which states that you multiply the available options at each stage together. When selecting runners for a podium, the number of choices decreases because a runner cannot finish in two different places simultaneously.


If there are 55 runners racing for 33 podium positions, you calculate the arrangements progressively.

Three sequential boxes labelled 1st Place, 2nd Place, and 3rd Place showing 5 choices, then 4 choices, then 3 choices. They multiply together to equal 60.


Any one of the 55 runners could finish first. After the winner crosses the line, 44 runners remain eligible for second place. Finally, 33 runners compete for third. Multiplying 5×4×35 \times 4 \times 3 yields exactly 6060 possible podium arrangements.

Use the nPr formula

When selecting from a large group without repetition, counting every position manually is slow. The standard permutation formula provides a faster calculation.


To find the number of ways to arrange rr objects chosen from a total pool of nn objects, use factorials in the following formula:

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


The letter nn represents the total number of items available, and rr represents how many items you are arranging. This is also commonly written in texts or calculators as nPrnPr or P(n,r)P(n, r).


For example, choosing 33 winners from 1010 contestants means n=10n = 10 and r=3r = 3. You substitute these into the formula as 10!(10−3)!\dfrac{10!}{(10-3)!}, which simplifies to 10!7!=10×9×8=720\dfrac{10!}{7!} = 10 \times 9 \times 8 = 720.

Compare repetition and no repetition

The standard formula nPr^nP_r only works when repetition is forbidden, meaning each item can be chosen only once.


If items can be reused, you do not decrease the number of options at each step. Instead, you multiply the full number of options nn by itself for every position rr. The number of permutations with repetition is simply nrn^r.

A split panel comparing a padlock with no repetition evaluated as 5 times 4 times 3 equals 60, versus a lock with repetition evaluated as 5 times 5 times 5 equals 125.


Digital passcodes usually allow repetition, meaning you can choose the digit 77 multiple times in the code 77777777. A race podium strictly forbids repetition, because a person cannot occupy both first and second place.

Compare permutations and combinations

Knowing whether order influences the result helps you choose the correct formula.


Permutations count ordered lists. Combinations count unordered groups.


When evaluating multiple possibilities, use the nPr^nP_r formula for permutations. If a problem requires selecting a group where internal sequence does not matter, you must use combinations instead. You can visually map both scenarios using probability tree diagrams, but formulas are much faster for large groups.

Worked examples

Review how to apply the counting rules across different scenarios.


Example 1: Short ordered codes


Question: How many unique 44-digit codes can be made from the digits 11 through 99 if no digit is repeated?

Given: There are 99 possible digits (n=9n = 9), and you must arrange 44 of them (r=4r = 4) where order matters.


Method:

  1. Choose the formula for permutations without repetition, nPr=n!(n−r)!^nP_r = \dfrac{n!}{(n-r)!}.
  2. Substitute n=9n = 9 and r=4r = 4 into the expression.
  3. Simplify the fraction by canceling the common factorial terms.

Answer: 9P4=9!(9−4)!=9!5!=9×8×7×6=3,024^9P_4 = \dfrac{9!}{(9-4)!} = \dfrac{9!}{5!} = 9 \times 8 \times 7 \times 6 = 3{,}024. There are 3,0243{,}024 unique codes.


Check: Use the multiplication principle. The first digit has 99 options, the second has 88, the third has 77, and the fourth has 66. Multiplying 9×8×7×69 \times 8 \times 7 \times 6 confirms the result is 3,0243{,}024.


Example 2: Arrangements of letters


Question: In how many ways can you arrange 33 letters chosen from the word PLANETPLANET?

Given: The word PLANETPLANET contains 66 distinct letters, so n=6n = 6. You are arranging 33 of them, making r=3r = 3.


Method:

  1. Use the standard formula nPr^nP_r.
  2. Substitute n=6n = 6 and r=3r = 3.
  3. Evaluate the factorials.

Answer: 6P3=6!(6−3)!=6!3!=6×5×4=120^6P_3 = \dfrac{6!}{(6-3)!} = \dfrac{6!}{3!} = 6 \times 5 \times 4 = 120. There are 120120 possible letter arrangements.


Check: Multiply the 66 choices for the first letter by the 55 remaining choices for the second, and the 44 remaining choices for the third. 6×5×4=1206 \times 5 \times 4 = 120.


Example 3: Repeated choices


Question: A digital lock uses a 33-letter code. If any letter from the 2626-letter alphabet can be used and repetition is allowed, how many total codes are possible?

Given: There are 2626 options for every position (n=26n = 26). The code contains 33 positions

(r=3r = 3). Repetition is permitted.


Method:

  1. Choose the formula for arrangements with repetition: nrn^r.
  2. Substitute n=26n = 26 and r=3r = 3.
  3. Evaluate the power.

Answer: 263=26×26×26=17,57626^3 = 26 \times 26 \times 26 = 17{,}576. There are 17,57617{,}576 total codes.


Check: Because repetition is allowed, options do not decrease. Position one has 2626 choices, position two has 2626, and position three has 2626. Their product is 17,57617{,}576.

Common mistakes

Avoid these frequent errors when counting arrangements.

  • Misidentifying the problem type: Do not use permutations when order does not matter. If a problem asks you to form a team rather than elect officers, use combinations.
  • Forgetting zero factorial: When substituting numbers where n=rn = r, the denominator becomes 0!0!. Remember that 0!=10! = 1, not 00.
  • Using nPr^nP_r with repetition: The standard factorial formula only works when items cannot be reused. If repetition is allowed, multiply the independent choices directly.

Frequently asked questions

What does nPrnPr mean?

The notation nPrnPr is a typographical way to write nPr^nP_r, which stands for permutations. It calculates the number of ways to arrange rr items selected from a total pool of nn unique items.


Can rr be larger than nn?

No, if repetition is forbidden, you cannot select more items than you have available. The value of rr must always be less than or equal to nn.


Is a combination lock actually a permutation lock?

Yes. A typical combination lock requires you to enter numbers in a highly specific sequence. Because the order strictly matters, the device mathematically measures permutations rather than combinations.

Practice questions

Question

Three blank slots side by side representing positions for the letters C, A, and T.

A passcode uses exactly 33 different letters chosen from the word CATCAT. How many possible passcodes can be made?

  • 3

  • 6

  • 9

  • 27

Answer:

6

Question

What is the value of 7P3^7P_3?

  • 21

  • 35

  • 210

  • 840

Answer:

210

Question

A combination lock with four distinct dials, where each dial allows digits from 1 to 5.

A lock uses a 44-digit passcode. The digits 11, 22, 33, 44, and 55 can be used, and digits can be repeated across positions. How many total passcodes are possible?

  • 20

  • 120

  • 625

  • 1024

Answer:

625

Question

Which scenario is evaluated using permutations instead of combinations?

  • Selecting 33 friends to go to the cinema.

  • Choosing 22 toppings for a pizza.

  • Picking a 11st and 22nd place winner in a contest.

  • Drawing 55 cards from a deck for a hand.

Answer:

Picking a 11st and 22nd place winner in a contest.

Question

In how many ways can you arrange 44 letters chosen from the word SPIDERSPIDER without repetition?

  • 24

  • 360

  • 720

  • 1296

Answer:

360