Maths Formulae Statistics Permutations

Permutations – Arrangements with Order

Understand permutation formulas used to calculate arrangements where order matters. Includes nPr formula.
🔑

Definition of Permutations

A permutation refers to the number of ways to arrange a subset of items from a larger set where the order matters. It is used when you're forming sequences, rankings, or positions from a group of elements. Permutations answer the fundamental question "In how many ways can we arrange things?" and form the backbone of combinatorial analysis, probability theory, and optimization problems where sequence and position are crucial.

\[ P(n,r) = {}^nP_r \]
Notation for Permutations
SymbolDescription
nTotal number of distinct items available in the set.
rNumber of items to be selected and arranged from the set.
n!n Factorial: the product of all positive integers up to n.
P(n,r)The number of permutations of n objects taken r at a time.
🔢

Key Permutation Formulas

\[ P(n,r) = {}^nP_r = \frac{n!}{(n-r)!} \]
Permutations of n Objects Taken r at a Time
\[ P(n,n) = n! = n \times (n-1) \times \ldots \times 1 \]
Permutations of all n Objects
🎨

Conceptual Diagram

Arrange 2 from 3 — P(3,2) = 6 ways A B C A B ≠ reversed B A ≠ reversed A C ≠ reversed C A B C C B P(n,r) = n! / (n−r)! Order MATTERS
Permutations P(n,r): arrange r items from n — order matters, so AB ≠ BA (6 arrangements from 3 items)

Imagine you have a set of n distinct items (e.g., colored balls) and r empty slots to fill. A permutation represents one way of filling these slots. For the first slot, you have n choices. For the second, you have n-1 remaining choices. This continues for all r slots. The total number of unique, ordered arrangements is the permutation P(n,r). The key concept is that arranging the same items in a different order (e.g., Red-Blue-Green vs. Blue-Red-Green) counts as a distinct permutation.

📊

Properties of Permutations

Order Sensitivity: Changing the position or order of the items creates a new, distinct permutation. For example, the arrangements ABC, BCA, and CAB are all different permutations of the same three letters.

Rapid Growth: The number of permutations, driven by the factorial function (n!), grows extremely rapidly. Even a small increase in 'n' leads to a massive increase in the number of possible arrangements.

Multiplicative Structure: Permutations are fundamentally based on the multiplication principle of counting. The number of choices for each position is multiplied together to find the total number of outcomes.

\[ P(n, 0) = 1 \]
Arranging zero items from a set of n is done in one way (the empty arrangement).
\[ P(n, 1) = n \]
There are n ways to arrange one item selected from a set of n.
\[ P(n, n) = n! \]
Arranging all n items from a set of n is simply n factorial.
🔬

Proof of the Permutation Formula P(n,r)

The formula for permutations can be derived using the fundamental principle of counting (the multiplication principle). We want to arrange r objects selected from a set of n distinct objects.

1. For the first position, there are n choices.

2. For the second position, one object has been used, so there are (n-1) choices remaining.

3. For the third position, there are (n-2) choices remaining.

This continues until we fill the r-th position. For the r-th position, (r-1) objects have been chosen, so there are n - (r-1) or (n-r+1) choices left.

By the multiplication principle, the total number of ways to arrange these r objects is the product of the number of choices for each position:

\[ P(n,r) = n \times (n-1) \times (n-2) \times \ldots \times (n-r+1) \]

To express this in terms of factorials, we can multiply and divide by (n-r)!:

\[ P(n,r) = \frac{n \times (n-1) \times \ldots \times (n-r+1) \times (n-r) \times \ldots \times 1}{(n-r) \times \ldots \times 1} \]

The numerator is now n! and the denominator is (n-r)!, which gives the final formula:

\[ P(n,r) = \frac{n!}{(n-r)!} \]
🧮

Worked Example

Calculate the number of permutations of 7 items taken 3 at a time, P(7,3).
  1. Identify the total number of items, n = 7.
  2. Identify the number of items to arrange, r = 3.
  3. Apply the permutation formula: P(n,r) = n! / (n-r)!
  4. Substitute the values: P(7,3) = 7! / (7-3)! = 7! / 4!
  5. Expand the factorials: P(7,3) = (7 × 6 × 5 × 4 × 3 × 2 × 1) / (4 × 3 × 2 × 1)
  6. Cancel out the common terms (4!): P(7,3) = 7 × 6 × 5
  7. Calculate the final result: 7 × 6 × 5 = 210.
There are 210 ways to arrange 3 items selected from a set of 7.
🧮

Try It

🚀

Applications of Permutations

Cybersecurity & Cryptography: Permutations are fundamental to calculating the complexity and strength of passwords, cryptographic keys, and ciphers. The vast number of possible arrangements of characters makes brute-force attacks difficult.

Scheduling & Operations Research: In logistics and management, permutations help find optimal arrangements for tasks, jobs on a machine, or routes for a delivery vehicle (as in the Traveling Salesman Problem). This is crucial for maximizing efficiency and minimizing costs.

Genetics & Bioinformatics: Scientists use permutation analysis to study gene sequences and protein structures. Understanding the possible arrangements of DNA bases or amino acids is key to understanding biological functions and diseases.

Gaming & Probability: Permutations are used to calculate the odds in games of chance, such as the probability of getting a specific sequence of cards in poker or the number of possible outcomes in a lottery.

🌍

Real-World Examples

In a race with 10 runners, how many different ways can the gold, silver, and bronze medals be awarded?
  1. This is a permutation because the order of the top three runners matters (1st place is different from 2nd).
  2. Here, n = 10 (total runners) and r = 3 (medal positions).
  3. Calculate P(10,3) = 10! / (10-3)! = 10! / 7!
  4. P(10,3) = 10 × 9 × 8 = 720.
There are 720 different ways to award the three medals.
A club has 20 members. How many ways can a president, vice-president, and treasurer be chosen?
  1. Order matters because the positions are distinct (being president is different from being treasurer).
  2. Here, n = 20 (total members) and r = 3 (positions to fill).
  3. Calculate P(20,3) = 20! / (20-3)! = 20! / 17!
  4. P(20,3) = 20 × 19 × 18 = 6,840.
There are 6,840 different ways to choose the officers.
How many unique 4-digit PINs can be created using the digits 0-9 if no digit can be repeated?
  1. Order matters in a PIN. We are arranging 4 digits from a set of 10.
  2. Here, n = 10 (digits 0-9) and r = 4 (positions in the PIN).
  3. Calculate P(10,4) = 10! / (10-4)! = 10! / 6!
  4. P(10,4) = 10 × 9 × 8 × 7 = 5,040.
There are 5,040 unique 4-digit PINs with no repeated digits.
🏙️

Real-World Scenarios

🥇 🥈 🥉 Race Podium P(8,3) = 8×7×6 = 336 orderings from 8 competitors
Race Results
With 8 runners, the number of distinct gold/silver/bronze outcomes is P(8,3) = 336 — order matters, unlike combinations where the podium positions would be ignored.
_ _ PIN Security 4-digit PIN from 0–9: P(10,4) = 5,040 (without repeats) 10⁴=10,000 with repeats
Password Security
A 4-digit PIN without repeated digits has P(10,4) = 5,040 options. With repetition it's 10⁴ = 10,000. Permutations quantify brute-force search space for cryptography.
T1 T2 T3 T4 One schedule ordering 4 tasks = 4! = 24 orderings n tasks = n! schedules Task Scheduling NP-hard: brute force = n!
Job Scheduling
Scheduling n jobs on a machine has n! possible orderings. For just 10 jobs that's 3.6 million — why scheduling optimisation uses heuristics rather than brute force.

Arranging a Music Playlist: The order in which you arrange songs in a playlist creates a different listening experience. A playlist with 15 songs has 15! (over a trillion) possible arrangements, each a unique permutation.

Lock Combinations: Although called a 'combination' lock, a lock where the order of numbers matters (like 42-15-30) is actually a permutation problem. The sequence is critical to opening the lock.

Seating Arrangements: When planning a dinner party or a wedding, the arrangement of guests at tables is a permutation. Who sits next to whom can significantly change the social dynamics, so the order and position matter.

📚

Types and Classifications

Permutations can be classified based on whether repetition is allowed, whether objects are distinct, or if the arrangement is linear or circular.

TypeDescriptionFormula
Permutations with Repetition (Multi-set)Arrangements of r items from n types where items can be reused.\[ n^r \]
Permutations of a Multi-setArrangements of n items where some items are identical.\[ \frac{n!}{n_1! n_2! \ldots n_k!} \]
Circular PermutationsArrangements of n distinct objects in a circle.\[ (n-1)! \]
DerangementsPermutations where no element appears in its original position.\[ D_n = n! \sum_{k=0}^{n} \frac{(-1)^k}{k!} \]
⚠️

Common Mistakes

⚠️ Confusing Permutations with Combinations: The most common mistake is using permutations when order does not matter. Remember: Permutation = Position matters. If you are forming a committee where roles aren't specified, that's a combination. If you are assigning specific roles (President, VP), that's a permutation.
⚠️ Incorrectly Calculating Factorials: A frequent error is assuming 0! = 0. By mathematical convention, 0! = 1. This is important for formulas like P(n,n) where the denominator becomes (n-n)! = 0!.
💡 Forgetting to Divide for Repetitions: When arranging items with identical elements (like the letters in 'MISSISSIPPI'), failing to divide by the factorials of the counts of each repeated item will lead to a vastly inflated result. You must account for the indistinguishable arrangements.
🚀

Study Strategy

1 📖 Grasp the Core Concepts
  • Review the 'Definition of Permutations' to understand it as an arrangement of objects where order is critical.
  • Study the 'Conceptual Diagram' to visualize how different arrangements are formed and counted.
  • Read through the 'Properties of Permutations' to learn the fundamental rules, such as P(n,n) = n!.
  • Examine the 'Proof of the Permutation Formula' to build a deeper, intuitive understanding of why it works.
2 🧠 Memorize the Key Formulas
  • Commit the primary formula, P(n, r) = n! / (n - r)!, to memory using flashcards or repetition.
  • Memorize the formulas for special cases covered under 'Types and Classifications,' such as permutations with repetition (n^r).
  • Practice writing out the 'Key Permutation Formulas' from memory until you can do it without errors.
  • Compare the permutation formula with 'Related Formulas' like combinations to solidify the distinction.
3 ✍️ Practice with Worked Examples
  • Follow the 'Worked Example' step-by-step, recalculating each part to ensure you understand the process.
  • Solve the example problem again without looking at the solution, then compare your work to identify gaps.
  • Analyze the 'Common Mistakes' section and actively try to avoid these specific pitfalls in your practice problems.
  • Find additional practice problems that mirror the structure of the worked examples to build speed and accuracy.
4 🌍 Apply to Real-World Scenarios
  • Read the 'Applications of Permutations' section and explain how the formula applies in each case (e.g., cryptography, scheduling).
  • Analyze the 'Real-World Examples,' such as arranging books on a shelf, and correctly identify the values for 'n' and 'r'.
  • Create your own 'Real-World Scenarios' based on your daily life, like picking a PIN code or setting a class schedule.
  • Distinguish between permutation and combination problems in mixed problem sets by asking the key question: 'Does the order matter?'
By systematically building from concepts to application, you'll master permutations and confidently solve any arrangement problem.

Frequently Asked Questions

×

×