Mathematics · Cheatsheet
Number & Algebra
Chapter 3 · Counting
📋 Reference · always available
Multiplication principle (AND)
If task A has outcomes and task B has outcomes, doing both in sequence gives outcomes. Generalises to any number of independent stages.
Addition principle (OR)
If task A has outcomes and task B has outcomes and they are mutually exclusive alternatives, choosing one or the other gives outcomes.
Factorial
Factorial — quick facts
. Grows extremely fast — by you are past 3.6 million.
Arrange all $n$ distinct objects in a row
Number of orderings of different items along a line.
Permutation of $r$ from $n$ (order matters)
Pick items from AND arrange them. Example: 3-letter codes from 5 letters with no repeats .
Identical-objects formula
Arrange items where are repeats of each kind. Example: arrangements of MISSISSIPPI .
Circular arrangement
Round table: fix one person to remove rotational symmetry, then arrange the remaining linearly.
Combination (order does not matter)
Pick items from when order is irrelevant. Equal to — divide out the orderings of each chosen group.
Symmetry of $\binom{n}{r}$
Choosing to include = choosing to leave out.
Quick values
Pascal's rule
Each entry of Pascal's triangle is the sum of the two above it. Useful for shortcuts and proofs.
Binomial theorem
Expands into terms: powers of fall from to , powers of rise from to , coefficients come from row of Pascal's triangle.
General term
The -th term, indexed from . Use this to extract a specific term (e.g. the term) without expanding the whole thing.
Coefficient extraction — recipe
To find the coefficient of in : write , set the power of to , solve for , evaluate.
Pascal's triangle (first rows)
Row 0: 1 — Row 1: 1 1 — Row 2: 1 2 1 — Row 3: 1 3 3 1 — Row 4: 1 4 6 4 1 — Row 5: 1 5 10 10 5 1 — Row 6: 1 6 15 20 15 6 1.
Decision tree: P or C?
Ask: does the order of the chosen items change the outcome? YES ⇒ permutation . NO ⇒ combination . Seating, codes, ordered podiums ⇒ P. Committees, hands of cards, picking a team ⇒ C.
Decision tree: multiply or add?
AND between independent stages ⇒ multiply. OR between mutually exclusive cases ⇒ add. Split a mixed problem into disjoint cases first (add), then count each case (multiply).
Pitfall — double-counting
If swapping two identical items gives the same arrangement, you have over-counted. Divide by the symmetries (use the identical-objects formula or factor out the equivalent orderings).
Pitfall — wrong power in binomial
In , every term carries an extra power of as well as . Do not drop the . In , term carries .
Pitfall — calculator
and have dedicated GDC buttons (often under MATH → PRB). Do not compute for large — overflow risk. Use the built-in function.