Curious Minds

Clear answers to science and history questions

Permutation Example: What Counts and What Doesn't

· 5 min read · Science

A permutation is an arrangement of items in which order matters. A classic example is the number of ways to award gold, silver, and bronze medals to three of eight sprinters: choosing Alice, Bob, and Carol in that order is a different outcome from choosing Bob, Alice, and Carol, because the medal each person receives changes. Contrast that with simply selecting a three-person committee from the same eight runners, where order is irrelevant — that is a combination, not a permutation.

What a Permutation Actually Is

In mathematics, a permutation of a set is a specific ordering of its elements. If you have n distinct objects, the number of possible orderings of all of them is n factorial, written n!. For three objects — say the letters A, B, and C — there are 3! = 3 × 2 × 1 = 6 permutations: ABC, ACB, BAC, BCA, CAB, CBA. For four objects there are 24, for five there are 120, and the count grows very quickly.

When you arrange only some of the objects, the count is given by the permutation formula: P(n, r) = n! / (n − r)!, where n is the total number of items and r is how many you are arranging. For the medal example with eight runners and three medals, P(8, 3) = 8! / 5! = 8 × 7 × 6 = 336 possible podium outcomes.

Everyday Examples of Permutations

Permutations appear whenever the sequence or position of items carries meaning. Concrete cases include:

  • Podium finishes — gold, silver, and bronze assigned to different athletes.
  • Password or PIN digits — 4-7-2-9 is not the same as 9-2-7-4.
  • Seating arrangements — five people in five chairs produce 120 distinct lineups.
  • Race finishing orders — the full order in which runners cross the line.
  • Batting orders — a manager choosing the sequence of nine hitters.
  • Combination locks — despite the name, these are permutations because the sequence must match exactly.
  • Playlists or queue orders — the same songs in a different sequence are a different playlist.

A useful test: if swapping two items produces a meaningfully different result, you are dealing with a permutation. If swapping them makes no difference, you are dealing with a combination.

Permutations With Repetition

Sometimes items can repeat. A four-digit PIN allows each digit to be used more than once, so there are 10 × 10 × 10 × 10 = 10,000 possible PINs — a permutation with repetition, calculated as nr. The same logic applies to license-plate formats or to strings of letters where repetition is allowed. The formula changes because you are not removing items from the pool after each choice.

There is also the case of permuting a multiset — a collection with identical items. The number of distinct arrangements of the letters in the word BANANA, for instance, is 6! / (3! × 2! × 1!) = 60, because the three A's and two N's are indistinguishable and swapping them does not create a new arrangement.

Permutation vs. Combination: The Key Difference

The distinction is simple but easy to forget under pressure. A permutation counts ordered selections; a combination counts unordered selections. Choosing a president, vice-president, and treasurer from a club of ten is a permutation problem because the roles differ — P(10, 3) = 720. Choosing a three-person fundraising subcommittee from the same ten is a combination problem — C(10, 3) = 120. The combination count is always smaller because each unordered group corresponds to several orderings.

A common misconception is that the word "combination" in everyday language always means order does not matter. A combination lock is the standard counterexample: the correct sequence must be entered in the right order, so mathematically it is a permutation device. The name is a historical quirk, not a mathematical classification.

How to Solve a Permutation Problem

Working through a permutation question is mostly about identifying what is being counted. A reliable procedure is:

  1. List the distinct items available and confirm whether they are all different or some repeat.
  2. Decide whether order matters — ask whether swapping two chosen items changes the outcome.
  3. Determine whether items can be reused (repetition allowed) or are consumed once chosen.
  4. Choose the formula: n! for arranging all distinct items, n!/(n−r)! for arranging r of n without repetition, or nr with repetition.
  5. Compute carefully, watching for factorials that cancel.

For example, arranging four of seven books on a shelf: order matters, no repeats, so P(7, 4) = 7 × 6 × 5 × 4 = 840.

Where Permutations Are Used

Permutations are foundational in probability and statistics, where counting equally likely outcomes is the first step in assigning probabilities. They underpin the study of sorting algorithms in computer science, where a list of n items has n! possible orderings and an algorithm's job is to reach the sorted one. In cryptography, the security of many schemes rests on the enormous number of possible key orderings. In genetics and molecular biology, the arrangement of sequences matters, and permutation-based tests are used to assess whether observed patterns could have arisen by chance. Even in everyday scheduling — assigning shifts, ordering deliveries, planning tournament fixtures — the same counting logic applies.

Frequently Asked Questions

Is a password a permutation or a combination?

A password is a permutation because the order of characters matters. Even if the same set of characters is used, a different sequence produces a different password.

What is the difference between a permutation and a factorial?

A factorial is a number — the product of all positive integers up to a given value. A permutation is an arrangement, and the number of permutations of n distinct items equals n!, so factorials are the tool used to count permutations.

Can a permutation include repeated items?

Yes. Permutations with repetition allow the same item to appear more than once, and the count is nr. When a set contains identical items, the number of distinct arrangements is reduced and calculated by dividing the factorial by the factorials of the repeated counts.

Why is a combination lock called that if it is a permutation?

The name is a matter of convention rather than mathematics. Because the dial sequence must be entered in the correct order, the device is technically a permutation lock.

Does order always matter in a permutation?

Yes — that is the defining feature. If rearranging the chosen items does not produce a new outcome, the problem is a combination instead.

In this article
  1. What a Permutation Actually Is
  2. Everyday Examples of Permutations
  3. Permutations With Repetition
  4. Permutation vs. Combination: The Key Difference
  5. How to Solve a Permutation Problem
  6. Where Permutations Are Used
  7. Frequently Asked Questions