Curious Minds

Clear answers to science and history questions

Permutations: What They Are and How They Work

· 5 min read · Science

A permutation is an arrangement of items in a specific order. In mathematics, it refers to any one of the possible ordered arrangements of a set of distinct objects, and the study of permutations is a core part of combinatorics, the branch of mathematics dealing with counting, arrangement, and combination.

What Exactly Is a Permutation?

At its simplest, a permutation is a rearrangement. If you have three distinct objects—say A, B, and C—then every possible ordered sequence of those three objects is a permutation. For this set, there are six permutations: ABC, ACB, BAC, BCA, CAB, and CBA. The key idea is that order matters: ABC and CBA are different permutations even though they contain the same items.

This distinguishes permutations from combinations. In a combination, order is irrelevant; {A, B, C} is the same combination regardless of how you list it. In a permutation, order is everything. For example, the letters in a password are a permutation problem because "abc" and "cba" are different passwords. Choosing three toppings for a pizza is a combination problem because the order you name them doesn't change the pizza.

The Mathematics Behind Permutations

Counting permutations relies on the multiplication principle. If you have n distinct items and want to arrange all of them in a row, you have n choices for the first position, n−1 for the second, n−2 for the third, and so on. The total number of permutations is therefore n × (n−1) × (n−2) × … × 1, which is written as n! (n factorial). For three items, 3! = 6, matching the six arrangements above.

When you arrange only some of the items—say k items chosen from n—the number of permutations is n × (n−1) × … × (n−k+1), often denoted as nPk or P(n, k). This equals n! / (n−k)!. For example, the number of ways to arrange 2 letters from {A, B, C} is 3! / 1! = 6, which are AB, AC, BA, BC, CA, CB.

When some items are identical, the count changes. The number of distinct permutations of a multiset with repeated elements is n! divided by the product of the factorials of each item's frequency. For instance, the letters of "BANANA" (6 letters: B once, A three times, N twice) yield 6! / (1! × 3! × 2!) = 720 / (1 × 6 × 2) = 60 distinct arrangements.

Types of Permutations

Permutations appear in several forms depending on context:

  • Permutations of a set: All possible ordered arrangements of the entire set. For n distinct items, there are n! permutations.
  • k-permutations: Ordered arrangements of k items selected from n, without repetition. Count: n! / (n−k)!.
  • Permutations with repetition: Arrangements where items can be reused. For n choices and k positions, there are nk possibilities.
  • Permutations of a multiset: Arrangements of items where some are identical, as with the BANANA example.
  • Circular permutations: Arrangements around a circle, where rotations are considered the same. For n distinct items, there are (n−1)! circular permutations.

How Permutations Are Calculated: Step by Step

To compute the number of permutations for a given problem, follow these steps:

  1. Identify the total number of distinct items, n.
  2. Determine how many items you are arranging, k (if all, k = n).
  3. Decide whether repetition is allowed. If not, use the formula n! / (n−k)!. If repetition is allowed, use nk.
  4. If items are not all distinct, divide by the factorial of each repeated item's count.
  5. For circular arrangements, use (n−1)! for distinct items.

Example: How many ways can you arrange the letters of "LEVEL"? The word has 5 letters: L twice, E twice, V once. The number of distinct permutations is 5! / (2! × 2! × 1!) = 120 / 4 = 30.

Permutations in the Real World

Permutations are not just abstract puzzles; they model many everyday situations:

  • Passwords and PINs: A 4-digit PIN allows 104 = 10,000 permutations if digits can repeat. If no digit repeats, there are 10 × 9 × 8 × 7 = 5,040.
  • Seating arrangements: The number of ways to seat 5 people in a row is 5! = 120. Around a round table, it is (5−1)! = 24.
  • Race finishes: The number of possible finishing orders for 8 runners is 8! = 40,320.
  • Card games: The number of ways to arrange a hand of cards depends on order; permutations matter when the sequence of cards is significant.
  • Routing and scheduling: Finding the best order to visit several locations or perform tasks is a permutation problem, often tackled with optimization algorithms.

A common misconception is that permutations and combinations are interchangeable. They are not: permutations count ordered arrangements, combinations count unordered selections. Confusing the two leads to wrong answers in probability and counting problems.

Permutations vs. Combinations

The distinction is fundamental. A permutation is an ordered arrangement; a combination is an unordered selection. For a set of n items, the number of combinations of size k is n! / (k! (n−k)!), often written as C(n, k) or "n choose k." This is always smaller than the corresponding permutation count because each combination can be arranged in k! different orders.

For example, from 5 people, choosing a president and vice president (order matters) gives 5 × 4 = 20 permutations. Choosing a committee of 2 (order doesn't matter) gives 10 combinations.

Frequently Asked Questions

What is the difference between a permutation and a combination?

A permutation is an ordered arrangement, while a combination is an unordered selection. For instance, the arrangement AB is different from BA as a permutation, but they are the same combination.

How many permutations does a deck of cards have?

A standard 52-card deck has 52! possible orderings, an enormous number (approximately 8 × 1067).

Can permutations include repeated items?

Yes, permutations can involve repeated items, but the number of distinct arrangements is reduced. The formula divides by the factorials of the frequencies of each repeated item.

What is a circular permutation?

A circular permutation is an arrangement around a circle where rotations are considered identical. For n distinct items, there are (n−1)! circular permutations.

Are permutations used in computer science?

Yes, permutations are used in algorithms, cryptography, data analysis, and optimization problems such as the traveling salesman problem.

How do I calculate permutations with a calculator?

Most scientific calculators have a permutation function, often labeled nPr. To compute manually, use the formula n! / (n−k)! for arrangements without repetition.

In this article
  1. What Exactly Is a Permutation?
  2. The Mathematics Behind Permutations
  3. Types of Permutations
  4. How Permutations Are Calculated: Step by Step
  5. Permutations in the Real World
  6. Permutations vs. Combinations
  7. Frequently Asked Questions