Week 6 · Part 1 — Multiplication & Addition Principles 0%
STEP 1 OF 23 · Lesson Opening

Today: Multiplication & Addition Principles

The two foundational rules of counting — and the prism topology bonus that earns AIMO Q2 marks.

What you will learn today

Topic
Counting (Combinatorics) — the multiplication principle for independent steps and the addition principle for mutually exclusive cases. Includes the complement (subtraction) trick and the n-prism topology formulas.
Category
Combinatorics (COMB) — sub-topic Counting I — Multiplication & Addition.
Solves these AIMO problems
2001 Q3 2004 Q2 2005 Q2 Q2-class general
Three real past papers plus a class of Q2-style problems that all reduce to mult/add.
AoPS Reference
Introduction to Counting & Probability by David Patrick, Chapters 1–2. The multiplication and addition principles are foundational; the prism topology is auxiliary.
Why this matters
Almost every Q2 in the COMB strand starts with mult/add. Master this and Q2 becomes free 2 marks. The prism formula (\(V=2n,\ E=3n,\ F=n+2\)) directly solves AIMO 2004 Q2.
Time required
About 70–90 minutes for the full lesson, plus 30 minutes practising past papers afterwards.

How this lesson is structured

  1. Phase 0 (Steps 2–3): Prerequisites — multiplication, factorial intuition, "and" vs "or" in English.
  2. Phase 1 (Steps 4–5): Visual intuition. Decision trees, Venn diagrams for mutually exclusive sets, an animated tree diagram, and the n-prism topology picture.
  3. Phase 1.5 (Step 6): Formula handbook — the four atomic skills laid out as one cheat-sheet.
  4. Phase 2 (Steps 7–9): Three guided derivations — multiplication, addition, prism Euler.
  5. Phase 3 (Steps 10–14): Five Worked Examples (⭐ → ⭐⭐⭐⭐⭐), each fully written out.
  6. Phase 4 (Step 15): Eight independent practice problems with hints + solutions.
  7. Phase 5 (Steps 16–18): Three real AIMO past papers in exam format with the 5-step Observe template.
  8. Phase 5.5 (Steps 19–20): Two synthesis problems combining ≥2 atomic skills each.
  9. Step 21: Atomic skill matrix + 8 micro-validations (2 per skill) summary.
  10. Step 22: Mini Mock Test (3 in-Part originals, auto-graded with full-solution reveal).
  11. Step 23: Summary, cheat sheet, ⭐ self-rating, and error-book preview.
Pedagogical note: The hardest part is not the arithmetic — it is reading the English correctly. Whenever the problem says "and", multiply. When it says "or" with no overlap, add. When it says "at least one", complement.
STEP 2 OF 23 · Phase 0 · Prerequisites

Phase 0 — what you need to bring

Three small ideas. If any of these feel shaky, fix them now before continuing.

1. Multiplication is repeated independent choice

If you have \(a\) ways to do step 1 AND \(b\) ways to do step 2, with the choices not affecting each other, you have \(a \cdot b\) total outcomes. This is just multiplication, but the framing is what matters.

2. Addition is "split into non-overlapping cases"

If a question can be answered by EITHER doing it in case A (\(a\) ways) OR in case B (\(b\) ways), and the cases share no outcomes, the total is \(a + b\). The word here is "or", and the cases must be disjoint.

3. English keywords

  • "and" → multiply (independent steps within one outcome)
  • "or" → add (different mutually-exclusive cases)
  • "at least one" → complement: \(\text{total} - \text{(none)}\)
  • "no two adjacent equal" → multiply with one fewer choice for each later step
If you have not seen factorials before, just remember: \(n! = n \cdot (n-1) \cdot (n-2) \cdots 2 \cdot 1\). For example, \(5! = 120\). We will use this only lightly today; the heavy permutation work waits for Part 2.
STEP 3 OF 23 · Phase 0 · Verification

Phase 0 verification — five quick checks

Five 30-second problems. If you get all five, you are ready. Otherwise re-read Step 2.

P0-1 — Multiplication keyword

A meal is one starter and one main. There are 3 starters and 4 mains. How many meals?

Answer

"and" → multiply: \(3 \cdot 4 = \mathbf{12}\).

P0-2 — Addition keyword

A snack is one piece of fruit or one biscuit. There are 4 fruits and 5 biscuits. How many choices?

Answer

"or" with disjoint sets → add: \(4 + 5 = \mathbf{9}\).

P0-3 — Three independent steps

Outfit = 1 shirt and 1 pant and 1 shoe. There are 3 shirts, 4 pants, 2 shoes. How many outfits?

Answer

\(3 \cdot 4 \cdot 2 = \mathbf{24}\).

P0-4 — Complement intuition

A coin is flipped 3 times. There are 8 sequences total. How many sequences have at least one heads? (Hint: count "no heads" first.)

Answer

"No heads" = TTT only, that is 1 sequence. So "at least one heads" = \(8 - 1 = \mathbf{7}\).

P0-5 — Power of independent choices

A 4-digit binary string (each digit is 0 or 1). How many strings?

Answer

\(2 \cdot 2 \cdot 2 \cdot 2 = 2^4 = \mathbf{16}\).

STEP 4 OF 23 · Phase 1 · Visual

The decision tree picture

Forget formulas. Just count leaves on a tree.

You own 3 shirts and 2 pairs of pants. An outfit is one shirt and one pair of pants. How many outfits?

Draw it as a tree. The trunk splits into 3 branches (one per shirt). Each branch then splits into 2 sub-branches (one per pant). Count the leaves at the bottom.

start S1 S2 S3 S1·P1 S1·P2 S2·P1 S2·P2 S3·P1 S3·P2 3 shirts × 2 pants = 6 leaves = 6 outfits Multiplication principle in action

SVG 1 — animated decision tree. Branches grow in via stroke-dasharray; leaves fade in last.

The big idea: Counting leaves on a tree is the same as multiplying. \(3 \cdot 2 = 6\). Each level of the tree is one independent choice.

Now the addition picture — Venn for mutually exclusive sets

What if instead the problem said "today's outfit is either a shirt-and-pants combo (6 ways) or a single dress (4 ways)"? You don't multiply 6 and 4. You add them, because the two cases share no outcomes.

A: shirt + pants |A| = 6 3 shirts · 2 pants B: a single dress |B| = 4 4 dresses |A ∪ B| = |A| + |B| = 6 + 4 = 10 (because A ∩ B = ∅)

SVG 2 — Venn diagram for mutually exclusive sets. Circles do not overlap, so the addition principle applies cleanly.

STEP 5 OF 23 · Phase 1 · Visual

The n-prism — counting V, E, F by picture

A surprise topology bonus that earns AIMO 2004 Q2 marks. One picture, three formulas.

An n-sided prism is the 3D shape you get by taking an n-sided polygon and stretching it straight up. Two parallel n-gons (top and bottom) plus n rectangular sides connecting them.

n = 6 (hexagonal prism) Vertices V = 2·6 = 12 Edges E = 3·6 = 18 Faces F = 6 + 2 = 8 Check Euler: V − E + F = 12 − 18 + 8 = 2 ✓ SVG 3 — n-prism topology (here n = 6).
n-prism topology — three formulas
\(V = 2n,\quad E = 3n,\quad F = n + 2\)
Counted directly:
\(2\) n-gons \(\Rightarrow 2n\) vertices · \(2n\) horizontal edges + \(n\) vertical edges = \(3n\) · top + bottom + \(n\) sides = \(n+2\) faces
Verify with Euler: for any convex polyhedron, \(V - E + F = 2\). Plug in: \((2n) - (3n) + (n+2) = 2\). ✓ for every \(n\). Memorise the three formulas — they are direct exam ammunition.
STEP 6 OF 23 · Phase 1.5 · Formula handbook

The four atomic skills — at a glance

Memorise this table. Every problem in this Part is one of these four, or a combination.

IDSkillTrigger wordsFormula / pattern
C1-A1 Multiplication principle "and", consecutive steps \(n_1 \cdot n_2 \cdots n_k\)
C1-A2 Addition principle (mutually exclusive) "or", disjoint cases \(|A| + |B|\) when \(A \cap B = \emptyset\)
C1-A3 Subtraction / complement counting "at least one", "not all", "no" \(\text{total} - \text{(complement)}\)
C1-A4 n-prism topology "n-sided prism", "edges/faces of a prism" \(V = 2n,\ E = 3n,\ F = n + 2\)
Decision rule: read the problem out loud. The English keyword tells you which skill to use 90% of the time. The remaining 10% is recognising "at least one" → complement.
STEP 7 OF 23 · Phase 2 · Derivation 1

Derivation 1 — Multiplication principle

Why \(n_1 \cdot n_2\) really is the right count. From scratch.

Setup. Suppose step 1 has \(n_1\) outcomes \(\{a_1, a_2, \ldots, a_{n_1}\}\). After fixing one of these, step 2 has \(n_2\) outcomes (the same number for each step-1 outcome — that is the "independent" condition).

List the pairs. Pair each step-1 outcome with each step-2 outcome:

If step 1 = \(a_1\): pair it with \(b_1, b_2, \ldots, b_{n_2}\) — that is \(n_2\) pairs. If step 1 = \(a_2\): another \(n_2\) pairs. If step 1 = \(a_{n_1}\): another \(n_2\) pairs.

Total. \(n_1\) groups, each of size \(n_2\), no two sharing a pair (because step-1 labels differ). Total = \(n_1 \cdot n_2\).

Extension to \(k\) steps: apply the same argument repeatedly. The product is \(n_1 \cdot n_2 \cdots n_k\).

The key word is independent. If step-2 outcomes depend on step-1 (e.g., "no repeats"), the per-step count changes — you adjust each \(n_i\) accordingly. We will see this in WE5.
STEP 8 OF 23 · Phase 2 · Derivation 2

Derivation 2 — Addition principle

Why splitting a problem into disjoint cases just adds the counts.

Setup. Suppose the problem allows you to answer it in case A (with \(|A|\) outcomes) or case B (with \(|B|\) outcomes), and the cases are mutually exclusive: no outcome appears in both \(A\) and \(B\).

Then the total number of outcomes is \(|A \cup B| = |A| + |B|\).

Why? When sets are disjoint, listing all of \(A\) first then all of \(B\) gives a list of length \(|A| + |B|\) with no repeats. That list is exactly \(A \cup B\).

What if the cases overlap? Then we use \(|A \cup B| = |A| + |B| - |A \cap B|\) — the inclusion-exclusion principle (Week 8 · Part 2). For now, keep cases strictly disjoint.

Combined with multiplication. A typical problem has structure: "(do X with \(a\) ways AND Y with \(b\) ways) OR (do Z alone with \(c\) ways)" → answer is \(a \cdot b + c\). This is exactly WE2.

STEP 9 OF 23 · Phase 2 · Derivation 3

Derivation 3 — n-prism V, E, F formulas

Use the multiplication and addition principles directly to count vertices, edges, and faces.

Vertices: \(V = 2n\)

The prism has 2 polygons (top + bottom). Each polygon has \(n\) vertices. Top vertices and bottom vertices are disjoint sets, so by addition: \(n + n = 2n\).

Edges: \(E = 3n\)

Three disjoint kinds of edges:

  • Top polygon edges: \(n\)
  • Bottom polygon edges: \(n\)
  • Vertical edges connecting top to bottom: \(n\)

Disjoint cases → addition: \(n + n + n = 3n\).

Faces: \(F = n + 2\)

Two disjoint kinds of faces:

  • Side faces (rectangles): \(n\)
  • Top + bottom polygon faces: \(2\)

Disjoint cases → addition: \(n + 2\).

Sanity check — Euler's formula

For any convex polyhedron: \(V - E + F = 2\). Plug in: \((2n) - (3n) + (n+2) = 2\). ✓ for every n.

Both AIMO 2004 Q2 and Phase 4 P7 are inverse versions: given E or F, find n. Just solve a simple equation in one unknown.
STEP 10 OF 23 · Phase 3 · Worked Example 1

Worked Example 1 — outfit count

The cleanest possible application of the multiplication principle.

WE1 · ⭐ · skill: C1-A1

A wardrobe has 3 shirts, 4 pants, and 2 pairs of shoes. An outfit is one shirt and one pant and one pair of shoes. How many distinct outfits are possible?

Try it yourself first. Write the answer below, then click Show Answer / Show Solution to compare.
Your answer:
Answer: 24 outfits

Strategy

Three independent steps joined by "and": pick a shirt (3 ways), pick a pant (4 ways), pick shoes (2 ways). Multiply.

Calculation

\(3 \times 4 \times 2 = 24\)
24 outfits
Reflection — this is the prototype of the multiplication principle. Whenever you can describe an outcome as "step 1 AND step 2 AND step 3 …", count each step separately and multiply.
STEP 11 OF 23 · Phase 3 · Worked Example 2

Worked Example 2 — breakfast options ⭐⭐

Combining multiplication and addition in one problem.

WE2 · ⭐⭐ · skills: C1-A1 + C1-A2

Breakfast is either (one of 3 hot dishes and one of 2 drinks) or (one of 4 cold dishes alone, no drink). How many breakfast options are there?

Identify which keyword is "and" and which is "or" before you compute. Try it.
Your answer:
Answer: 10 breakfast options

Strategy

Two disjoint cases. Case A = hot dish AND drink (multiply). Case B = cold dish alone (count directly). The cases are mutually exclusive (a hot+drink breakfast is not a cold-only breakfast). Add the two counts.

Calculation

Case A: \(3 \times 2 = 6\) Case B: \(4\) Total: \(6 + 4 = 10\)
10 breakfast options
Reflection — the dual structure (multiply within a case, add across cases) is THE pattern for half of all Q2 counting problems. Master this and you have a major weapon.
STEP 12 OF 23 · Phase 3 · Worked Example 3

Worked Example 3 — n-sided prism with 2004 edges ⭐⭐⭐

The exact AIMO 2004 Q2 setup. Apply the prism formula and solve a one-step equation.

WE3 · ⭐⭐⭐ · skill: C1-A4

An n-sided prism has 2004 edges. Find n and the number of faces.

Recall the three prism formulas from Step 5. Which one do you need?
Your answer (enter n):
Answer: n = 668, F = 670

Strategy

Apply the prism edge formula \(E = 3n\). Solve for n. Then plug into \(F = n + 2\).

Calculation

\(E = 3n = 2004\) \(n = 668\) \(F = n + 2 = 670\) (Check: \(V = 2n = 1336\), Euler: \(1336 - 2004 + 670 = 2\) ✓)
n = 668, F = 670
Reflection — three formulas, one equation each. Memorise \(V=2n,\ E=3n,\ F=n+2\) and any prism question collapses to one line.
STEP 13 OF 23 · Phase 3 · Worked Example 4

Worked Example 4 — 3-digit numbers, no two adjacent equal ⭐⭐⭐⭐

A constrained multiplication. Each step has a different available count.

WE4 · ⭐⭐⭐⭐ · skill: C1-A1 + adjacency constraint

Count the 3-digit numbers in which no two adjacent digits are equal. (Leading digit must be non-zero, as always for 3-digit numbers.)

Build the number left to right. How many choices does each digit have, given what came before?
Your answer:
Answer: 729

Strategy

Three independent steps — but each later step's count depends on the previous digit (must differ from it). The available count is constant per step, so multiplication still applies.

Calculation

Hundreds digit: 1–9 (no zero). 9 choices. Tens digit: any 0–9 except the hundreds digit. 9 choices. Units digit: any 0–9 except the tens digit. 9 choices. Total: \(9 \cdot 9 \cdot 9 = 729\).
729
Reflection — the constraint "differs from previous" reduces each later step's pool by exactly 1 (from 10 to 9). Always count digit-by-digit, left to right.
STEP 14 OF 23 · Phase 3 · Worked Example 5

Worked Example 5 — school code, no repeats ⭐⭐⭐⭐⭐

A 5-step multiplication with two no-repeat constraints. The decreasing-pool pattern.

WE5 · ⭐⭐⭐⭐⭐ · skills: C1-A1 + decreasing pool

A school code consists of 2 uppercase letters followed by 3 digits, with NO repeated letter and NO repeated digit. How many such codes exist?

Two independent blocks (letters AND digits). Within each block, every position has one fewer choice than the previous one.
Your answer:
Answer: 468,000

Strategy

Two independent halves: letter half (2 positions, no repeat) AND digit half (3 positions, no repeat). Each half is a "decreasing pool" multiplication.

Calculation

Letters: \(26 \cdot 25 = 650\) (first letter free; second avoids first) Digits: \(10 \cdot 9 \cdot 8 = 720\) (first free, then 9, then 8) Combine: \(650 \cdot 720 = 468{,}000\)
468,000
Reflection — "no repeat" inside a block means each later position sees a pool one smaller than the previous. Independent blocks then multiply with each other. This pattern is the bridge to permutations \(P(n, k) = \frac{n!}{(n-k)!}\) (Part 2).
STEP 15 OF 23 · Phase 4 · Practice (8 problems)

Phase 4 — 8 independent practice problems

Try each cold. Hint and Show Solution buttons are progressive — open only when you genuinely cannot proceed.

P1 · ⭐ · C1-A1

A restaurant offers 4 starters, 5 mains, and 3 desserts. A meal is one of each. How many distinct meals?

"and" three times → multiply.
\(4 \cdot 5 \cdot 3 = 60\) meals.
P2 · ⭐ · C1-A2

A path from A to B has 5 routes via X and 3 routes via Y, with X and Y disjoint. How many routes total?

Two disjoint case sets → add.
\(5 + 3 = 8\) routes.
P3 · ⭐⭐ · C1-A1

A licence plate has 3 letters followed by 3 digits, no constraints (letters or digits can repeat). How many possible plates?

Each of 6 positions is independent. Letters have 26 choices each, digits have 10.
\(26^3 \cdot 10^3 = 17{,}576 \cdot 1000 = 17{,}576{,}000\).
P4 · ⭐⭐ · C1-A4 (pyramid)

A 5-sided pyramid (apex + 5-gon base) — how many edges does it have?

Pyramid edges = base edges + lateral edges (one per base vertex).
5 base edges + 5 lateral edges = \(\mathbf{10}\) edges. (For an n-pyramid, \(E = 2n\); see Synthesis 2.)
P5 · ⭐⭐⭐ · C1-A1

How many 4-digit numbers are odd?

Build digit-by-digit. Leading digit ≠ 0 (9 choices). Last digit must be odd (5 choices).
\(9 \cdot 10 \cdot 10 \cdot 5 = 4500\). (Leading 9, two middle 10s, last 5 for odd.)
P6 · ⭐⭐⭐ · C1-A1 + adjacency

A 4-character string from {A, B, C}, with no two adjacent characters equal. How many strings?

First position has 3 choices, each later position has \(3 - 1 = 2\) choices.
\(3 \cdot 2 \cdot 2 \cdot 2 = 24\) strings.
P7 · ⭐⭐⭐ · C1-A4

An n-sided prism has F = 14 faces. Find n and the number of edges E.

\(F = n + 2\), then \(E = 3n\).
\(n + 2 = 14 \Rightarrow n = 12\). Then \(E = 3 \cdot 12 = 36\).
P8 · ⭐⭐⭐⭐ · C1-A1 + cases

How many 3-digit numbers have all three digits distinct AND are divisible by 5? (A number is divisible by 5 iff its last digit is 0 or 5.)

Split on last digit: case A (last = 0) and case B (last = 5). Cases are disjoint. Add.
Case A (last = 0): leading from 1–9 (9 choices), middle from remaining 8 digits = \(9 \cdot 8 = 72\).
Case B (last = 5): leading from {1..9}\\{5} = 8 choices, middle from {0..9}\\{5, leading} = 8 choices = \(8 \cdot 8 = 64\).
Total: \(72 + 64 = \mathbf{136}\).
STEP 16 OF 23 · Phase 5 · AIMO Past Paper

AIMO 2004 · Q2

2 marks. Try cold first. Use Hints on the right only if stuck.

AIMO 2004 · Q2 · [2 marks]
An n-sided prism has 2004 edges. Find n. State also the number of vertices V and the number of faces F.
Your answer (enter n):
Hints — open in order, only if stuck
(1) Observe — what to notice
5-step model
1. Keywords: "n-sided prism", "edges"
2. Known: total edges = 2004
3. Unknown: n; also V and F
4. Intermediate: the formula \(E = 3n\)
5. Hidden constraints: n must be a positive integer ≥ 3 (a prism needs at least a triangle base)
(2) Strategy — how to think about it
Apply the prism edge formula \(E = 3n\). Solve a one-step equation for n. Then plug into \(V = 2n\) and \(F = n + 2\).

Why this technique works in general: Any "given X count, find n" prism question reduces to one of three linear equations \(V = 2n\), \(E = 3n\), \(F = n + 2\). The pattern is universal — recognise the polyhedron, write the formula, solve.
(3) Step 1 — first action
Set \(3n = 2004\). Divide both sides by 3.
(4) Step 2 — second action
\(n = 668\). Now compute V and F by substitution.
(5) Step 3 — Euler check
Verify \(V - E + F = 2\). \((1336) - (2004) + (670) = 2\) ✓.
After hints, view full working:

Strategy

Direct application of \(E = 3n\) for an n-prism, then substitute back.

Solution

\(E = 3n = 2004\) \(n = 668\) \(V = 2n = 1336\) \(F = n + 2 = 670\)

Euler check: \(1336 - 2004 + 670 = 2\) ✓.

n = 668, V = 1336, F = 670
STEP 17 OF 23 · Phase 5 · AIMO Past Paper

AIMO 2005 · Q2

2 marks. Counting integer solutions by enumeration.

AIMO 2005 · Q2 · [2 marks]
A water taxi service has taxis that can carry exactly 6, 10, or 15 passengers. There are 105 passengers waiting. Each taxi must depart exactly full (no spare seats). The order in which taxis depart does not matter. In how many different ways can the 105 passengers be allocated to taxis?
Your answer (number of ways):
Hints — open in order, only if stuck
(1) Observe — what to notice
5-step model
1. Keywords: "different ways to allocate", "exactly full"
2. Known: 105 passengers; taxi sizes 6, 10, 15
3. Unknown: number of solutions \((a, b, c)\) to \(6a + 10b + 15c = 105\)
4. Intermediate: non-negative integers a, b, c
5. Hidden constraints: order of taxi departures doesn't matter (so we count multisets, i.e. unordered triples \((a, b, c)\))
(2) Strategy — case-split + enumerate
Split into disjoint cases by the number of 15-seat taxis used. For each fixed c, the equation reduces to \(6a + 10b = 105 - 15c\). Enumerate a, b that satisfy it. Sum the case counts.

Why this technique works in general: Any "count integer solutions to a sum equation" reduces to disjoint cases on the largest coefficient. Within a case, the residual is a 2-variable equation that can be enumerated with simple divisibility and bounding.
(3) Step 1 — bound c
\(15c \le 105 \Rightarrow c \in \{0, 1, 2, 3, 4, 5, 6, 7\}\). Note also \(105 - 15c\) must be ≥ 0 and divisible by 2 (since \(6a + 10b\) is even). \(105\) is odd; \(15c\) flips parity with c. So \(105 - 15c\) even ⇔ c odd. So c ∈ {1, 3, 5, 7}. But also c = 0 doesn't work since 105 is odd? Recheck: \(6a + 10b\) is always even, but 105 is odd, so we need \(15c\) odd → c odd.
(4) Step 2 — solve each c case
Wait — that contradicts c = 0. Let me re-check. For each c, solve \(6a + 10b = 105 - 15c\). I'll just enumerate ALL c from 0 to 7 directly:
c = 7: \(6a + 10b = 0\) → (0, 0). 1 solution.
c = 5: \(6a + 10b = 30\) → (a,b) with \(3a + 5b = 15\): (0,3), (5,0). 2 solutions.
c = 3: \(6a + 10b = 60\) → \(3a + 5b = 30\): (0,6),(5,3),(10,0). 3 solutions.
c = 1: \(6a + 10b = 90\) → \(3a + 5b = 45\): (0,9),(5,6),(10,3),(15,0). 4 solutions.
Even c gives no solutions (LHS even, RHS odd).
(5) Step 3 — sum the case counts
Total = \(1 + 2 + 3 + 4 = 10\) ways.
After hints, view full working:

Strategy

Count non-negative integer solutions \((a, b, c)\) to \(6a + 10b + 15c = 105\). Disjoint case-split on c (number of 15-seat taxis), then enumerate a, b for each case.

Solution

For each value of c, the residual is \(6a + 10b = 105 - 15c\), or dividing by 2: \(3a + 5b = (105 - 15c)/2\). Need RHS to be a non-negative integer, so \(105 - 15c\) must be even ⇒ c odd. Try c ∈ {1, 3, 5, 7} (c = 9 gives \(15 \cdot 9 = 135 > 105\) — invalid):

c = 1: \(3a + 5b = 45\). Solutions (a, b): (0, 9), (5, 6), (10, 3), (15, 0). 4 solutions. c = 3: \(3a + 5b = 30\). Solutions: (0, 6), (5, 3), (10, 0). 3 solutions. c = 5: \(3a + 5b = 15\). Solutions: (0, 3), (5, 0). 2 solutions. c = 7: \(3a + 5b = 0\). Solutions: (0, 0). 1 solution. Total: \(4 + 3 + 2 + 1 = 10\) ways.
10 different allocations
STEP 18 OF 23 · Phase 5 · AIMO Past Paper

AIMO 2001 · Q3

3 marks. A 5-step decreasing-pool multiplication.

AIMO 2001 · Q3 · [3 marks]
How many 5-digit numbers have all five digits distinct and a non-zero leading digit?
Your answer:
Hints — open in order, only if stuck
(1) Observe — what to notice
5-step model
1. Keywords: "5-digit", "all distinct", "non-zero leading"
2. Known: digits drawn from {0, 1, ..., 9}
3. Unknown: count of valid 5-digit numbers
4. Intermediate: digit-by-digit choice counts (decreasing pool)
5. Hidden constraints: first digit ∈ {1..9}, others ∈ {0..9} \ {previously used digits}
(2) Strategy — left to right
Build the number left to right, multiplying the count of choices at each digit position. The "no repeat" constraint shrinks the pool by 1 with each new position.

Why this technique works in general: Any "k-digit number with constraints" problem can be modelled as a sequence of independent positional choices, where each position's pool is determined by the constraint structure. Multiply the per-position counts. This is the universal model for permutation counting.
(3) Step 1 — leading digit
First digit ∈ {1, 2, ..., 9}. That's 9 choices.
(4) Step 2 — second digit
Second digit ∈ {0..9} but ≠ first. 0 is allowed here. Count = \(10 - 1 = 9\) choices.
(5) Step 3 — remaining digits and multiply
Third digit: \(10 - 2 = 8\). Fourth: \(7\). Fifth: \(6\). Total: \(9 \cdot 9 \cdot 8 \cdot 7 \cdot 6\).
After hints, view full working:

Strategy

Build left to right. First digit avoids 0. Each subsequent digit avoids the previously used digits.

Solution

Position 1 (leading): 9 choices (1–9) Position 2: 9 choices (0–9 except position 1) Position 3: 8 choices (10 − 2 used) Position 4: 7 choices Position 5: 6 choices Total: \(9 \cdot 9 \cdot 8 \cdot 7 \cdot 6 = 27{,}216\)
27,216 numbers
STEP 19 OF 23 · Phase 5.5 · Synthesis (combines 2+ skills)

Synthesis 1 — 5-digit password, no two adjacent equal

Combines C1-A1 (multiplication) with the adjacency constraint from WE4.

Synthesis 1 · ⭐⭐⭐ · skills: C1-A1 + adjacency
A 5-digit password is built from digits 0–9. The first digit must be non-zero, and no two adjacent digits may be equal. How many valid passwords are there?
Your answer:
Need help? Open these in order, only as needed:
(1) Observe — what to notice
5-step model
1. Keywords: "no two adjacent equal", "non-zero leading"
2. Known: 5 positions, digit pool {0..9}
3. Unknown: count of valid passwords
4. Intermediate: per-position choice count under adjacency constraint
5. Hidden constraints: first digit ≠ 0; later digits avoid only the immediately previous digit (NOT all earlier digits — repetitions further back are fine)
(2) Strategy
Apply the multiplication principle position by position. First position: 9 choices. Every later position: 10 − 1 = 9 choices (must differ from immediately previous, but allowed to equal earlier ones).

Why this technique works in general: "No two adjacent equal" is a local constraint, not a global one. Each later step independently has \(b - 1\) choices when the alphabet is size \(b\). The total is \(b \cdot (b-1)^{k-1}\) for k positions (with leading-zero adjustment if needed).
(3) Step 1
Position 1: 9 choices (1–9, can't be 0).
(4) Step 2
Each of positions 2, 3, 4, 5: 9 choices (must avoid only the immediately previous digit; the digit 0 is now allowed and can even repeat one we used at position 1).
(5) Step 3
Multiply: \(9^5 = 59{,}049\).

Strategy

Multiplication principle position by position. The "no two adjacent equal" rule reduces each later position's pool by exactly 1 (from 10 to 9). The leading-zero rule already gives 9 for position 1. So all five positions independently have 9 choices.

Solution

Position 1: 9 choices (non-zero) Position 2: 9 (≠ position 1, but 0 is now allowed) Position 3: 9 (≠ position 2) Position 4: 9 (≠ position 3) Position 5: 9 (≠ position 4) Total: \(9 \cdot 9 \cdot 9 \cdot 9 \cdot 9 = 9^5 = 59{,}049\)
59,049 passwords
STEP 20 OF 23 · Phase 5.5 · Synthesis (combines 2+ skills)

Synthesis 2 — pyramid + Euler verification

Combines C1-A4 (prism topology) with the Euler formula extended to pyramids.

Synthesis 2 · ⭐⭐⭐⭐ · skills: C1-A4 + Euler
A square pyramid has an apex plus 4 base vertices. Compare its V, E, F to those of a triangular prism (a 3-sided prism). Then for an n-sided pyramid (apex + n-gon base), give general formulas for V, E, F and verify Euler's formula \(V - E + F = 2\).
Your answer (give E for the n-pyramid):
Need help? Open these in order, only as needed:
(1) Observe — what to notice
5-step model
1. Keywords: "n-sided pyramid", "Euler"
2. Known: apex + n-gon base; Euler holds for any convex polyhedron
3. Unknown: V, E, F formulas in n
4. Intermediate: count vertices, edges, faces by category (apex vs base vs lateral)
5. Hidden constraints: n ≥ 3 (a pyramid needs at least a triangular base)
(2) Strategy
Use the addition principle to count V, E, F in disjoint categories. Then check Euler.

Why this technique works in general: Counting V, E, F by category (categorising each vertex/edge/face into a disjoint type) generalises the prism trick to any polyhedron family — pyramid, antiprism, truncated solid, etc.
(3) Step 1 — Vertices
1 apex + n base vertices = \(V = n + 1\).
(4) Step 2 — Edges
n base edges + n lateral edges (apex-to-base) = \(E = 2n\).
(5) Step 3 — Faces and Euler
1 base face + n triangular lateral faces = \(F = n + 1\). Euler: \((n+1) - 2n + (n+1) = 2\) ✓.

Strategy

Apply the addition principle to count V, E, F by disjoint categories (apex vs base vs lateral). Then verify with Euler.

Compare: square pyramid vs triangular prism

Square pyramid (n = 4 pyramid): V = 5, E = 8, F = 5; Euler: 5 − 8 + 5 = 2 ✓ Triangular prism (n = 3 prism): V = 6, E = 9, F = 5; Euler: 6 − 9 + 5 = 2 ✓

n-pyramid general formulas

\(V = n + 1\) (1 apex + n base vertices) \(E = 2n\) (n base edges + n lateral edges) \(F = n + 1\) (1 base face + n lateral triangular faces) Euler: \((n+1) - 2n + (n+1) = 2\) ✓ for every n ≥ 3
V = n+1, E = 2n, F = n+1; Euler holds ✓
STEP 21 OF 23 · Atomic skill matrix + micro-validation

Atomic skill matrix — 4 skills, 2 micro-checks each

Quick fluency check before the Mock Test. Aim for 8/8 here.

IDSkillWEsPhase 4 problemsAIMO problems
C1-A1MultiplicationWE1, WE4, WE5P1, P3, P5, P62001 Q3, Synthesis 1
C1-A2Addition (mut.exclusive)WE2P22005 Q2
C1-A3Complement(P0-4)P8 (cases)(implicit)
C1-A4n-prism / pyramid topologyWE3P4, P72004 Q2, Synthesis 2

Micro-validation — 2 checks per atomic skill (8 total)

C1-A1 — Multiplication principle

C1-A1 · M1 — independent steps

5 colours of paint × 4 brushes × 3 canvases. How many combinations?

Answer

\(5 \cdot 4 \cdot 3 = \mathbf{60}\).

C1-A1 · M2 — two-step meal

A meal is 1 of 6 starters AND 1 of 8 mains. How many meals?

Answer

\(6 \cdot 8 = \mathbf{48}\).

C1-A2 — Addition principle (mutually exclusive)

C1-A2 · M1 — three transport options

Either ferry (3 routes) OR train (4 routes) OR bus (2 routes), with no overlap. How many trip choices?

Answer

\(3 + 4 + 2 = \mathbf{9}\).

C1-A2 · M2 — two shelf categories

A book is on 1 of 5 fiction shelves OR 1 of 7 non-fiction shelves. How many possible locations?

Answer

\(5 + 7 = \mathbf{12}\).

C1-A3 — Subtraction / complement

C1-A3 · M1 — at least one '5'

How many 3-digit numbers contain at least one digit equal to '5'?

Answer

Total 3-digit = \(900\). "No 5" anywhere: leading ∈ {1..9}\\{5} = 8 choices, then each of two later positions ∈ {0..9}\\{5} = 9 choices. Complement = \(8 \cdot 9 \cdot 9 = 648\). Answer = \(900 - 648 = \mathbf{252}\).

C1-A3 · M2 — no zero

How many 4-digit numbers do NOT contain the digit 0?

Answer

Each of 4 digits ∈ {1..9} = 9 choices. \(9^4 = \mathbf{6561}\).

C1-A4 — n-prism topology

C1-A4 · M1 — octagonal prism (give E)

An octagonal (8-sided) prism: enter the number of edges E.

Answer

\(V = 16,\ E = 24,\ F = 10\). The asked value is \(E = \mathbf{24}\).

C1-A4 · M2 — find n from E

A prism has 30 edges. Find n.

Answer

\(3n = 30 \Rightarrow n = \mathbf{10}\), and \(F = 12\).

STEP 22 OF 23 · Mini Mock Test

Mini Mock Test — 3 in-Part originals · 8 marks

Closed book. Time yourself: aim for 10 minutes total. Then click "Submit Mock" for instant grading.

Mini Mock — Multiplication & Addition

3 questions · 8 marks total · ~10 minutes recommended

M1 · ⭐⭐ · 2 marks

A simple lock has 3 dials, each showing one of 6 symbols. How many distinct lock combinations?

Your answer:
M2 · ⭐⭐⭐ · 3 marks

A drink order is either (1 of 4 sodas AND 1 of 3 ice flavours) OR (1 of 2 hot teas alone). How many distinct drink orders?

Your answer:
M3 · ⭐⭐⭐ · 3 marks

A prism has V + F = 32. Find n (the number of sides of the base polygon).

Your answer:
STEP 23 OF 23 · Summary

Summary, cheat sheet, self-assessment

Bank what you learned. Rate yourself. Review the error book.

Cheat sheet — the four atomic skills

C1-A1 · Multiplication
Use when steps are joined by "and" and are independent.
\(n_1 \cdot n_2 \cdots n_k\)
C1-A2 · Addition (mutually exclusive)
Use when cases are joined by "or" with no overlap.
\(|A| + |B|\) when \(A \cap B = \emptyset\)
C1-A3 · Complement
Use when "at least one" is hard but "none" is easy.
total − (none)
C1-A4 · n-prism topology
Memorise — direct exam ammunition.
\(V = 2n,\ E = 3n,\ F = n + 2\)
Bridge to Part 2: The decreasing-pool patterns in WE5 and AIMO 2001 Q3 are the gateway to permutations \(P(n,k) = n!/(n-k)!\). Part 2 formalises this and adds the combinations \(\binom{n}{k}\). Same multiplication engine — bigger toolbox.

⭐ Self-assessment — rate your mastery (1–5)

C1-A1 — Multiplication principle
C1-A2 — Addition principle (mutually exclusive)
C1-A3 — Complement (subtraction) counting
C1-A4 — n-prism topology (V, E, F)
⭐ 0 / 20 — click stars to record your mastery

Error book preview

Errors logged this session (sessionStorage)
No errors yet. As you submit wrong answers above, they appear here for revision.
You finished Part 1! Next: Part 2 — Permutations & Combinations Basics (\(P(n,k)\) and \(\binom{n}{k}\)).
AI tutor — confused? Open this drawer for general study guidance.

Stuck on a step? First, re-read the step out loud. Olympiad text is dense — it usually clicks on the second pass.

Wrong answers piling up? Open the error book on Step 23. Pick the most common mistake type and re-read the corresponding worked example.

Adjacency vs distinct vs no-zero — which constraint is which? "Adjacent" = only check the immediately previous position. "All distinct" = check every previous position. "No zero" = global rule. Read carefully.