IB Maths AA HL · free cheatsheet

Counting Principles cheatsheet (IB Maths AA HL)

Every counting rule, technique, trick and trap for IB Mathematics Analysis & Approaches HL — FCP, permutations, combinations, block method, residue classes and induction proofs. Written by an IB-certified teacher.

  • Counting Principles
  • ~14 minutes read

Counting Principles is one of the highest-leverage, lowest-rote-memory topics in IB Mathematics Analysis & Approaches HL. The formulas are short — factorials, $^nP_r$, $^nC_r$ and Pascal's identity — but the questions reward students who can choose between three or four valid approaches under exam pressure: direct counting, complementary counting, the block method, or residue classes. Almost all marks are lost not on arithmetic but on misreading the question (order matters or not?), forgetting the leading-zero rule, or failing to divide by $k!$ for unlabelled groups.

This cheatsheet condenses every rule, trigger pattern, trick and trap from SL 1.9 and AHL 1.10–1.11 into one revision page.

§1 — Quick Reference: Core Counting Formulas SL 1.9, AHL 1.10–1.11

FormulaNotationUse when…
$n_1 \times n_2 \times \cdots \times n_k$FCPSequential independent choices
$n! = n(n-1) \cdots 2 \cdot 1$FactorialArrange $n$ distinct objects in a line
$\dfrac{n!}{(n-r)!}$${}^nP_r$Select and arrange $r$ from $n$ (roles)
$\dfrac{n!}{r!(n-r)!}$${}^nC_r = \binom{n}{r}$Choose $r$ from $n$ (no roles)
$\binom{n}{r} + \binom{n}{r-1} = \binom{n+1}{r}$Pascal's identityInductive step in proofs
$\dfrac{n!}{(r!)^k \cdot k!}$Equal unlabelled groupsDivide into $k$ groups of $r$, no labels

Key values: $0! = 1$, $1! = 1$, $2! = 2$, $3! = 6$, $4! = 24$, $5! = 120$, $6! = 720$, $7! = 5040$, $8! = 40320$.

Symmetry: $\binom{n}{r} = \binom{n}{n-r}$.   Boundaries: $\binom{n}{0} = 1$, $\binom{n}{1} = n$, $\binom{n}{n} = 1$.

§2 — FCP: Independent vs Dependent Slots SL 1.9, AHL 1.10

Pattern: "How many codes / numbers / sequences…" with or without repetition.

The trick: Count the choices at each stage and multiply. If digits/objects are reusable: $n^k$. If no repetition: $n(n-1)(n-2)\cdots$

  • With repetition (3 digits from $\{1,2,3,4,5\}$): $5 \times 5 \times 5 = 125 = 5^3$.
  • Without repetition (same): $5 \times 4 \times 3 = 60 = {}^5P_3$.
TrapThe leading zero. For $k$-digit integers from $\{0, \ldots, 9\}$, the first digit has only 9 choices (not 10 — zero would make it a $(k-1)$-digit number). Handle position 1 separately, then continue.

§3 — Permutations: Order Matters AHL 1.10

Pattern: "Assign roles", "fill ranked positions", "arrange in a line", "how many $r$-digit PINs".

The trick: Use ${}^nP_r = \dfrac{n!}{(n-r)!}$. Ask: "Does swapping two chosen items give a different outcome?" If yes, it's a permutation. If no, it's a combination.

  • Elect chair, VP, secretary from 10: ${}^{10}P_3 = 720$.
  • First, second, third in a race of 8: ${}^8P_3 = 8 \times 7 \times 6 = 336$.
TrickIncreasing order = combination. "Distinct digits in increasing order" — once you choose which digits to use, there is exactly one arrangement, so use $\binom{n}{k}$, not ${}^nP_k$. Example: 6-digit integers, distinct digits, increasing, from $\{1,\ldots,9\}$: $\binom{9}{6} = 84$.

§4 — Block Method: "Must Be Adjacent" AHL 1.10

Pattern: "Group $X$ must sit/stand together", "must be adjacent", "immediately after".

The trick: Glue the $r$ objects into one super-object. Arrange $(n - r + 1)$ objects. Multiply by $r!$ for internal arrangements. If order within the block is fixed (e.g. "A immediately after B"), do not multiply by $r!$.

  • 3 girls together in a 9-person line: $7! \times 3! = 5040 \times 6 = 30240$.
  • Jack immediately after Andrea (8 runners): $7! = 5040$ (block is fixed-order, no $r!$ multiplier).

§5 — Complementary: "Must NOT Be Adjacent" AHL 1.10

Pattern: "Must not be together", "not in the same group", "at least one seat apart".

The trick: Almost always fastest: Total (no restriction) $-$ Bad (they ARE together). Use the block method to count the bad cases.

  • 3 friends not all together (row of 12): ${}^{12}P_3 - 3! \times 10 = 1320 - 60 = 1260$.
TrickSymmetry for "anywhere after". "Jack finishes anywhere after Andrea" (not immediately after). By symmetry, exactly half of all $n!$ arrangements have Jack after Andrea: answer $= \dfrac{n!}{2} = \dfrac{8!}{2} = 20160$.

§6 — At Least / At Most AHL 1.10

Pattern: "At least $k$…", "at most $k$…", "select at least two girls".

The trick:

  • At least 1: use complementary — Total $-$ (none).
  • At least $k \geq 2$: list valid cases and sum.
  • At most $k$: list valid cases or use complementary — Total $-$ (more than $k$).

Example: Select 5 from 6 boys + 3 girls, at least 2 girls:
$\binom{3}{2}\binom{6}{3} + \binom{3}{3}\binom{6}{2} = 60 + 15 = 75$.
Complementary check: $\binom{9}{5} - \binom{3}{1}\binom{6}{4} - \binom{6}{5} = 126 - 45 - 6 = 75$. ✓

§7 — Grid / Table Adjacency AHL 1.10

Pattern: Seating in an $r \times c$ grid, desk arrangement, with forbidden adjacent pairs.

The trick: Count adjacent pairs first, before any calculation:

$$r(c-1) + c(r-1) = 2rc - r - c \;\text{ total adjacent pairs in an }r \times c\text{ grid.}$$

Then: Bad $=$ (adjacent pairs) $\times$ (orderings of forbidden pair) $\times$ (arrangements of rest).

Example: $3\times 2$ grid: $3(1) + 2(2) = 7$ adjacent pairs. 5 sheep, 1 per pen, A and B not adjacent: Bad $= 7 \times 2 \times 4! = 336$. Valid $= 6! - 336 = 720 - 336 = 384$.

TrapSame-row only vs all adjacent. In desk/seat arrangements, always check whether the constraint is same row (horizontal only) or any adjacent (horizontal + vertical). Read the question carefully.

§8 — Equal Unlabelled Groups AHL 1.10

Pattern: "Divide $n$ people into $k$ equal teams", "split into equal groups with no names/labels".

The trick: Divide by $k!$ to remove overcounting from the $k!$ orderings of identical groups:

$$\dfrac{\binom{n}{r}\binom{n-r}{r}\cdots}{k!} = \dfrac{n!}{(r!)^k \cdot k!}$$

Example: 15 students, 3 unlabelled teams of 5: $\dfrac{\binom{15}{5}\binom{10}{5}\binom{5}{5}}{3!} = \dfrac{3003 \times 252 \times 1}{6} = 126\,126$.
If teams are labelled (Red/Blue/Green): $6 \times 126\,126 = 756\,756$.

§9 — Counting Equations: Find $n$ AHL 1.10

Pattern: "Find $n$ such that the number of arrangements is halved / doubled / equals $X$", "every student plays every other student… find class size".

The trick: Express both counts as polynomials in $n$. Form an equation, expand factorials, solve the polynomial. Always check domain restrictions (e.g. group sizes must be $\geq 0$) and reject extraneous roots.

  • Two students refuse same group; count halved. $2 \cdot {}^{n-2}C_2 = \tfrac{1}{2} {}^n C_3$ gives $n^2 - 13n + 36 = 0$, so $n = 4$ or $n = 9$. Group 2 needs $\geq 3$, so reject $n = 4$. $n = 9$.
  • Every pair plays twice, 513 total games, one player left early after 7 games: $(n-1)(n-2) + 7 = 513 \Rightarrow n = 24$.

§10 — Divisibility via Residue Classes AHL 1.10

Pattern: "Sum divisible by $d$", "product/sum with a specific remainder".

The trick: Classify all numbers by residue mod $d$. For $d = 3$: three groups R0, R1, R2. Sum $\equiv 0$ iff residues are all-same or one-of-each.

Example: From $\{1, \ldots, 30\}$ (10 each of R0, R1, R2), choose 3 with sum $\equiv 0 \pmod 3$:
All same: $3 \times \binom{10}{3} = 360$.   One of each: $10^3 = 1000$.   Total: 1360.

§11 — Proof by Induction with Combinations AHL 1.10–1.11

Pattern: "Prove $\displaystyle\sum_{r=1}^{n} {}^r C_k = {}^{n+1} C_{k+1}$" or similar combinatorial sum by induction.

The 4-step script (never deviate):

  1. Base case ($n = 1$): evaluate both sides numerically. "It works" without values $\Rightarrow$ R0.
  2. Assume true for $n = k$: write the $k$-statement explicitly. "Let $n = k$" $\Rightarrow$ M0.
  3. Inductive step: write LHS for $n = k + 1$, substitute the assumption, apply Pascal's identity.
  4. Conclusion: "Since true for $n = 1$, and true for $n = k$ implies true for $n = k + 1$, by PMI true for all $n \in \mathbb{Z}^+$." This sentence earns a dedicated R1 — never skip it.

Example: Prove $\displaystyle\sum_{r=1}^{n} {}^r C_1 = {}^{n+1} C_2$. Inductive step: ${}^{k+1}C_2 + {}^{k+1}C_1 = {}^{k+2}C_2$ by Pascal. Done.

TrapCommon induction mistakes: not evaluating both LHS and RHS at base case numerically (loses R1); writing "let $n = k$" instead of "assume true for $n = k$" (loses M1); forgetting the conclusion sentence (loses final R1 — most common dropout); not stating $k \in \mathbb{Z}^+$ in the assumption.

§12 — GDC Use on Paper 2 AHL 1.10

Counting questions are largely Paper 1 (no GDC) but some appear on Paper 2. The GDC is useful for:

TaskTI-84 / Nspire syntax
$\binom{n}{r}$MATH → PRB → nCr: type n nCr r
${}^nP_r$MATH → PRB → nPr: type n nPr r
$n!$MATH → PRB → !: type n!
Solve polynomialsolve(n^2 - 13n + 36 = 0, n) or table of values
Verify large factorialsStore intermediately; avoid overflow
TrapPaper 2 GDC traps: always write the setup expression before quoting GDC output: "${}^{10}C_3 \times {}^7C_4 = 720 \times 35 = 25\,200$". The GDC gives a decimal for $n!$ when $n$ is large — check it matches your algebraic expression. solve may give non-integer or negative roots — always verify $n \in \mathbb{Z}^+$ and check the domain.

§13 — Exam Attack Plan SL 1.9, AHL 1.10–1.11

If the question says…Reach for…
"$k$-digit integer from $\{0, \ldots, 9\}$"FCP; first digit: 9 choices
"Distinct digits in increasing order"$\binom{n}{k}$ — one arrangement per set
"Assign roles / ranked positions"${}^nP_r$
"Must be adjacent / together"Block method $\times r!$
"Immediately after / before"Block (fixed order, no $r!$)
"Must not be adjacent"Total $-$ block method
"Anywhere after / before"Symmetry: $n! / 2$
"At least 1 [condition]"Total $-$ none
"At least $k \geq 2$"Sum of cases
Grid / table seating problemCount $r(c-1) + c(r-1)$ pairs first
"Divide into equal unlabelled teams"$\div\, k!$ for identical groups
"Find $n$; count is halved/doubled"Algebra of combinations
"Sum divisible by $d$"Residue classes mod $d$
"Prove $\sum \binom{r}{k} = \binom{n}{m}$"Induction + Pascal; conclude formally

Worked Example — IB-Style Committee Selection

Question (HL Paper 1 style — 7 marks)

A committee of 6 students is to be chosen from a class of 7 boys and 5 girls.

  1. How many committees have exactly 2 girls?
  2. How many committees have at least 2 girls?
  3. If two specific boys, Alex and Brian, refuse to serve together, how many committees with exactly 3 boys and 3 girls are now possible?

Solution

  1. Exactly 2 girls: choose 2 girls from 5 and 4 boys from 7. $\binom{5}{2} \cdot \binom{7}{4} = 10 \cdot 35 = 350$.  (M1)(A1)
  2. At least 2 girls: list cases — 2G+4B, 3G+3B, 4G+2B, 5G+1B.
    $\binom{5}{2}\binom{7}{4} + \binom{5}{3}\binom{7}{3} + \binom{5}{4}\binom{7}{2} + \binom{5}{5}\binom{7}{1}$
    $= 350 + 350 + 105 + 7 = 812$.  (M1)(A1)
  3. 3B + 3G with Alex and Brian not both serving: Total 3B+3G unrestricted $= \binom{7}{3}\binom{5}{3} = 35 \cdot 10 = 350$.  (M1)
  4. Bad cases (Alex AND Brian both in): pick the third boy from the remaining 5, and 3 girls from 5: $\binom{5}{1}\binom{5}{3} = 5 \cdot 10 = 50$.  (A1)
  5. Valid $= 350 - 50 = 300$.  (A1)

Examiner's note: Part (c) tests complementary counting under a constraint. The most common error is to compute "Alex in OR Brian in" instead of "both in" — these are different. Always identify the exact bad event before subtracting from the total.

Common Student Questions

When do I use a permutation versus a combination?
Ask: "does swapping two of the chosen items give a different outcome?" If yes, order matters — use ${}^nP_r$. If no, order does not matter — use ${}^nC_r$. Roles like chair/VP/secretary are permutations; selecting a committee is a combination. Special case: if items must be in increasing order, once you choose them the arrangement is unique, so use $\binom{n}{r}$ even though the words sound like a permutation.
How does the block method work for "must be adjacent"?
Glue the $r$ objects that must stay together into one super-object, then arrange $(n - r + 1)$ objects, which gives $(n - r + 1)!$ arrangements. Multiply by $r!$ for the internal arrangements of the block. Exception: if the order inside the block is fixed — e.g. "A immediately after B" — do not multiply by $r!$, because there is only one valid internal order.
How do I count $k$-digit numbers when 0 is one of the digits?
The first digit cannot be 0 (otherwise the number has fewer than $k$ digits), so position 1 has only 9 choices. Handle position 1 separately, then continue with the remaining positions. For example, 4-digit codes from $\{0, \ldots, 9\}$ with no repeats: $9 \times 9 \times 8 \times 7$ — first slot is 9, second slot is 9 because 0 is now allowed but the first digit chosen is gone.
Why do I divide by $k!$ for equal unlabelled groups?
Because the $k$ groups are indistinguishable: any of the $k!$ orderings of the same partition counts as the same answer in real life, but the sequential $\binom{n}{r}$ selection counts each ordering separately. Dividing by $k!$ removes that overcounting. Formula: $\dfrac{n!}{(r!)^k \cdot k!}$ for $k$ equal groups of size $r$. If the groups are labelled (e.g. Red / Blue / Green teams), do not divide.
How do I do a "sum divisible by $d$" counting question?
Classify all numbers by their residue mod $d$. For $d = 3$, you get three groups R0, R1, R2. The sum is divisible by 3 if and only if the residues are all the same OR one of each. Count each case separately and add. Example: pick 3 from $\{1, \ldots, 30\}$ with sum $\equiv 0 \pmod 3$ — answer is $3 \cdot \binom{10}{3} + 10^3 = 1360$.

Your next step

Keep going