Permutations & Combinations

1. Introduction to Counting

Combinatorics is a branch of mathematics concerned with counting, arrangement, and combination of objects. At its core, it answers a fundamental question: how many ways can we arrange or select items from a given set? The distinction between permutations and combinations lies entirely in whether the order of selection matters.

These concepts form the foundation of probability theory, cryptography, statistical analysis, and algorithm design. Mastering them requires understanding factorials, the multiplication principle, and when to apply each formula.

2. Permutations

A permutation is an arrangement of objects in a specific order. When order matters, swapping two items creates a different outcome. For example, the sequence (A, B, C) is distinct from (C, B, A).

The number of permutations of r items selected from a set of n distinct items is given by:

P(n, r) = n! / (n āˆ’ r)!

Where n! (n factorial) represents the product of all positive integers up to n (e.g., 5! = 5 Ɨ 4 Ɨ 3 Ɨ 2 Ɨ 1 = 120).

šŸ“ Example: Password Creation

A 4-digit PIN uses digits 0–9 without repetition. How many possible PINs exist?

Solution: Here, n = 10 (digits), r = 4 (positions). Order matters because 1234 ≠ 4321.
P(10, 4) = 10! / (10āˆ’4)! = 10! / 6! = 10 Ɨ 9 Ɨ 8 Ɨ 7 = 5,040 possible PINs.

3. Combinations

A combination is a selection of items where order does not matter. Choosing {A, B, C} is identical to choosing {C, A, B}. This is common in committee selection, lottery draws, and team formation.

The number of combinations of r items from a set of n is:

C(n, r) = n! / [r!(n āˆ’ r)!]

Note that C(n, r) is often read as "n choose r" and is symmetric: C(n, r) = C(n, nāˆ’r).

šŸ“ Example: Fruit Salad

You have 6 types of fruit. How many 3-fruit combinations can you make?

Solution: n = 6, r = 3. Order doesn't matter in a mixed bowl.
C(6, 3) = 6! / [3!(6āˆ’3)!] = 720 / (6 Ɨ 6) = 20 unique combinations.

4. Key Differences

FeaturePermutationCombination
Order Matters?YesNo
FormulaP(n,r) = n!/(nāˆ’r)!C(n,r) = n!/[r!(nāˆ’r)!]
RelationshipP(n,r) = C(n,r) Ɨ r!C(n,r) = P(n,r) / r!
Common Use CasesRankings, passwords, schedulesCommittees, lotteries, selections
Relative CountAlways larger or equalAlways smaller or equal

5. Real-World Applications

Permutations and combinations extend far beyond textbook exercises. They are critical in:

  • Cryptography: Estimating brute-force complexity for keys and passwords.
  • Genetics: Modeling gene combinations and chromosomal arrangements.
  • Computer Science: Algorithm analysis, scheduling, and network routing.
  • Sports Analytics: Predicting match outcomes and tournament brackets.
  • Quality Control: Sampling strategies in manufacturing and testing.
šŸ¤– Aevum AI Cross-Reference: This topic directly connects to Binomial Theorem, Probability Distributions, and Information Theory. Explore the knowledge graph to visualize interdisciplinary links.

6. Worked Examples

šŸ“ Problem 1: Bookshelf Arrangement

In how many ways can 5 distinct books be arranged on a shelf if 2 specific books must remain together?

Approach: Treat the 2 books as a single unit. Now we arrange 4 units (the pair + 3 other books). The 4 units can be arranged in 4! ways. Inside the pair, the 2 books can swap in 2! ways.
Total = 4! Ɨ 2! = 24 Ɨ 2 = 48 arrangements.

šŸ“ Problem 2: Committee Selection

A club has 12 members. How many ways can a 4-person committee be formed if it must include at least 1 woman, given there are 5 women and 7 men?

Approach: Use complementary counting. Total ways to choose 4 from 12: C(12,4) = 495. Subtract cases with 0 women (all men): C(7,4) = 35.
Valid committees = 495 āˆ’ 35 = 460 ways.

7. References & Further Reading

šŸ“Š Article Metrics: Last verified by editorial board: Oct 12, 2025 • 14 citations • 98.7% accuracy score • Cross-linked to 32 related entries