CombinatoricsFormulBase · formulary masterclass
Formulary · combinatorics

Combinatorics

Counting without listing every case. How many podiums, passwords, card hands, handshakes? Four formulas are enough, and two questions decide between them: does order matter, is repetition allowed? The whole chapter lives in that one reflex.

0The symbols

Symbols

Few signs, but each one encodes a precise counting situation. Here is the dictionary.

SymbolMeaning
n! "n factorial": the product 1 · 2 · 3 ⋯ n. The number of ways to order n distinct objects.
0! = 1 An indispensable convention: there is exactly one way to order zero objects, namely doing nothing.
Pₙ The permutations of n objects: Pₙ = n!. All the objects, each one once, order matters.
Aₙᵏ The arrangements (k-permutations of n): k objects drawn from n, without replacement, taking order into account.
Cₙᵏ The combinations: k objects chosen from n, without replacement, without order. Also read as "n choose k".
(ⁿₖ) The binomial coefficient: the same thing as Cₙᵏ, in matrix dress. It is what populates Pascal's triangle.
nᵏ Draws with replacement and with order: k successive choices out of n possibilities each time.
· The multiplicative principle: successive steps multiply. The chapter's great, silent engine.
+ The additive principle: mutually exclusive cases add up. Valid only without overlap.
(a + b)ⁿ The binomial theorem: its expansion is written out in advance by the binomial coefficients.
Trap number one
No formula is ever chosen blindly. Before any calculation, two questions: does the order of the draw matter? Can the same object be taken again? The four possible answers give the four formulas. Pick the wrong box, and you have answered a different question.

1The two principles

Principles

Every formula in this chapter is built from two elementary moves: multiplying steps, adding cases.

1.1 · Multiplying steps

The multiplicative principle
step 1: m choices, step 2: n choices ⟹ m · n outcomes
S P R F V R F V SR SF SV PR PF PV 2 starters × 3 mains = 6 menus
The tree makes the principle visible: every branch of the first tier carries the same set of sub-branches, so we multiply.
What
EN

When an experiment unfolds in successive steps whose number of choices does not depend on earlier steps, the total is the product of the choices at each step.

Why
EN

Because every outcome of the first step opens the same range of options at the second: the tree has m branches, and each one splits into n. Counting the leaves means multiplying.

The number of choices must be the same at every branch; the choices themselves may differ.

1.2 · Adding cases

The additive principle
disjoint cases: m + n outcomes
What
EN

When outcomes fall into families that do not overlap, count each family and add them up.

Watch out
Addition requires disjoint cases. If two families overlap, the sum counts the shared elements twice; the intersection must then be subtracted. "Multiple of 2 or 3 between 1 and 12": 6 + 4 − 2 = 8, not 10.

2Factorial and permutations

2.1 · n! and permutations

Factorial
n! = 1 · 2 · 3 ⋯ n · 0! = 1
Permutations
Pₙ = n!
What
EN

Ordering n distinct objects means filling n places: n choices for the first, n − 1 for the second, and so on down to 1.

The multiplicative principle does the rest: n · (n − 1) ⋯ 1 = n!.

Why
EN

Why is 0! = 1 and not 0? Because an empty product equals 1, just as an empty sum equals 0. And because the formulas demand it: Cₙⁿ = n!/(n! · 0!) must equal 1, since there is only one way to take everything.

Factorials explode fast: 10! already comes to 3,628,800, and 20! exceeds what an ordinary calculator can hold. That is the sign that listing everything by hand is hopeless, and that formulas earn their keep.

2.2 · Anagrams: permutations with repetition

Permutations with repetition
P = n! / ( k₁! · k₂! ⋯ kᵣ! ) · k₁ + ⋯ + kᵣ = n
What
EN

When objects are indistinguishable from one another (think of the three A's in ANANAS, French for pineapple), swapping these twins around changes nothing.

So we count n! as though everything were distinct, then divide by the k! of each group of twins.

Lab

The lab counts the anagrams of any word: it groups the letters, writes out the division and, when the list stays short, lists the anagrams for real.

Lab · the anagram-o-meter
Letters·
The calculation·
Distinct anagrams·

3Arrangements

Arrangements without repetition (k-permutations of n)
Aₙᵏ = n! / (n − k)! = n · (n−1) ⋯ (n−k+1)
Arrangements with repetition
Āₙᵏ = nᵏ
What
EN

An arrangement is an ordered draw: k places to fill with objects taken from n.

Without replacement, the range of choices shrinks at every place: n, then n − 1, down to n − k + 1. With replacement, it stays at n for every place: nᵏ.

Example A podium (gold, silver, bronze) among 10 runners: order matters, nobody steps up twice. A₁₀³ = 10 · 9 · 8 = 720. A 4-digit PIN code: order matters, digits repeat freely. 10⁴ = 10,000.
How
EN

In practice, the form n!/(n − k)! is almost never used directly: you write the descending product straight away, k factors starting from n.

A₁₀³: three factors starting from 10, namely 10 · 9 · 8. Done before you have even reached for a calculator.

4Combinations

Combinations without repetition
Cₙᵏ = n! / ( k! · (n − k)! ) = Aₙᵏ / k!
What
EN

A combination is an unordered draw: you choose a bundle of k objects out of n, and the bundle has no first place.

Start from the arrangement Aₙᵏ, then divide by k!: each bundle was counted there once for every order it could appear in.

A B C D C₄² = 6 a handshake = an unordered pair
Four people greet one another: each segment is a choice of 2 out of 4. Six segments, and handshake AB is the same as BA.
Symmetry
Cₙᵏ = Cₙⁿ⁻ᵏ
Why
EN

Choosing the k objects you take is exactly the same as choosing the n − k you leave behind. Two descriptions of the same move, hence the same number.

This is the chapter's signature argument: count the same thing two ways. No calculation needed, and the formula falls out on its own.

Pascal's rule
Cₙᵏ = Cₙ₋₁ᵏ⁻¹ + Cₙ₋₁ᵏ
Why
EN

Pick out one star object among the n. Every choice of k objects either contains it (leaving k − 1 to take from n − 1) or leaves it out (leaving k to take from n − 1).

Two disjoint cases, additive principle: Pascal's rule. It is what generates the triangle in the next lab.

5The draw factory

Lab

The four formulas side by side, applied to real objects. Choose n, k and the drawing mode: the machine writes out the formula, gives the total, and lists the draws themselves for as long as they fit on screen.

Compare the four modes at fixed n and k: same letters, four different worlds. Watch ABC and BCA merge into one the moment order stops mattering.

Lab · the four modes
The formula·
Total·

6Pascal's triangle and the binomial theorem

Lab

Arrange the Cₙᵏ into a pyramid: each cell is the sum of the two cells above it, Pascal's rule turned into a picture. Click a cell: its two parents light up, along with its symmetric twin.

Lab · the living triangle
The cell and its parents·
Its twin·
Row sum·

The binomial theorem
(a + b)ⁿ = Σₖ Cₙᵏ · aⁿ⁻ᵏ · bᵏ · k = 0 … n
Why
EN

Expanding (a + b)ⁿ means distributing across n parentheses: every term of the result picks a or b from each one. A term aⁿ⁻ᵏbᵏ appears exactly as many times as there are ways to choose the k parentheses that contribute b.

That number is Cₙᵏ. The binomial theorem is not an algebra formula with a dash of combinatorics thrown in: it is combinatorics, pure and simple. And row n of the triangle gives 2ⁿ once you set a = b = 1: the number of subsets of an n-element set.

Example (a + b)⁴ = a⁴ + 4a³b + 6a²b² + 4ab³ + b⁴: the coefficients 1, 4, 6, 4, 1 are row 4 of the triangle, and their sum 16 = 2⁴ counts the subsets of a 4-element set.

7The method

Method

The central reflex fits into a square with two questions. It picks the formula for you.

without repetition with repetition order: yes order: no Aₙᵏ podium · trifecta bet nᵏ PIN code · password Cₙᵏ card hand · lottery Cₙ₊ₖ₋₁ᵏ ordering k scoops of ice cream
The decision square. The bottom-right cell (combinations with repetition) is often beyond the syllabus: just know that it exists.
1
Rephrase it: what, concretely, is an outcome?
Write out one outcome by hand (a podium, a code, a card hand). If you cannot write one down, the formula can wait.
2
Does order matter?
Test: swap two elements of your outcome. A new outcome? Order matters. The same one? It does not.
3
Is repetition allowed?
Can the same object appear twice? Drawing with or without replacement: the question is about the situation, not about the formula.
4
Read off the cell in the square.
Two answers, one cell, one formula. Composite situations are first broken down into steps (×) or cases (+), then each piece goes through the square.
5
Check it on a small case.
Shrink n and k until you can list every case by hand (the factory in section 5 does it for you), and compare against the formula's result. One minute that saves exam papers.

8The six mistakes

Mistake 1
Mixing up an arrangement and a combination. A committee of 3 people is not a podium: there is no first place in a committee. The swap test (method, step 2) settles it in ten seconds.
Mistake 2
Forgetting to ask about replacement. A password happily repeats its letters (nᵏ), a lottery draw never does (Cₙᵏ). The situation decides, not habit.
Mistake 3
Dividing by k! at the wrong moment. You divide to erase an ordering that has been over-counted, and only in that case. Divide a podium by 3! and it turns into a committee; fail to divide a card hand and it turns into a sequence.
Mistake 4
Adding steps or multiplying cases. Successive steps multiply (starter, then main course), mutually exclusive cases add up (fish menu or meat menu). Swapping the two principles produces absurd numbers, often too small to raise suspicion.
Mistake 5
Double-counting inside an addition. "At least one ace" broken into overlapping cases inflates the total. Reflex: either use genuinely disjoint cases, or go through the complement (everything minus "no ace at all"), which is often much shorter.
Mistake 6
Mishandling the edge cases: 0! = 1, Cₙ⁰ = 1, Cₙⁿ = 1, and Aₙᵏ = 0 as soon as k exceeds n (you cannot draw 5 objects out of 3 without replacement). These values are not whims: the empty product equals 1, and the formulas need them to fit together.

9Test yourself

Quiz

Eight questions, exactly one correct answer each time. The explanation appears right after your choice.

10The vocabulary in French and German

This formulary comes from Swiss upper-secondary schools (Gymnasium), where it is taught in both French and German. Here are its terms in their original languages, side by side.

FrançaisDeutsch
l'analyse combinatoire / le dénombrementdie Kombinatorik / das Abzählen
la factorielledie Fakultät
la permutationdie Permutation
l'arrangementdie Variation
la combinaisondie Kombination
le coefficient binomialder Binomialkoeffizient
« n choisir k »«n über k»
avec / sans répétitionmit / ohne Wiederholung
avec / sans remisemit / ohne Zurücklegen
l'ordre comptedie Reihenfolge zählt
le principe multiplicatifdas Produktprinzip
le principe additifdas Summenprinzip
des cas disjointsdisjunkte Fälle
le complémentairedas Komplement
l'anagrammedas Anagramm
indiscernableununterscheidbar
le triangle de Pascaldas Pascalsche Dreieck
la formule de Pascaldie Pascalsche Formel
le binôme de Newtonder binomische Lehrsatz
le développementdie Entwicklung
le sous-ensembledie Teilmenge
l'arbre de dénombrementdas Zählbaumdiagramm
énuméreraufzählen
le tiragedie Ziehung