Skip to the problems
IB Math Revision Start free
Extension & competition maths

Senior competition-style problems (ages 16 to 18)

40 short, clever problems at the age band of the UKMT Senior Mathematical Challenge and the MAA AMC 12. A Level / IB / Class 11–12 ideas: recurrences, inclusion–exclusion, Vieta, expectation, 3D geometry and harder logic. Every problem is original — written by us, not taken from a real paper — and has a hint, a full solution and a note on why the method works.

Want the real papers? The official past papers are linked from our hub (links only: we don’t host them).

Answer a problem to track what you have solved (saved on this device).

For teachers: add problems to a worksheet or set them as homework

To show a problem to the class, press Project on it: full screen, large type, a timer, the hint, the answer and the worked solution one step at a time (arrow keys move between problems; Space reveals the next step; F full screen; Esc closes). The link in the address bar opens that problem projected. Switch on the ‘Add to worksheet’ buttons, pick problems, then finish in the worksheet builder (print or share) or set them as homework for a class. Answers and full solutions travel with each problem as the mark scheme. These problems are free for every class, including free teacher classes.

Your worksheet basket is empty.Open worksheet builderSet as homework

Number theory (7 problems)

Problem S01

Number theoryMultiple choice

1013 is prime. What is the smallest positive whole number k for which 2026k is a perfect cube?

Hint

Factorise 2026. In a cube, every prime appears to a power that is a multiple of 3.

Full worked solution

Answer: D, 4 × 10132 = 4 104 676

  1. Factorise: 2026 = 2 × 1013, with 1013 prime.
  2. A whole number is a perfect cube exactly when every prime in its factorisation has an exponent that is a multiple of 3.
  3. 2026k must therefore contain 23 and 10133 at least. 2026 already has 21 and 10131, so k must supply 22 and 10132.
  4. Nothing else is needed, and any other prime in k would have to appear cubed, making k bigger. So k = 22 × 10132.
  5. Then 2026k = 23 × 10133 = 20263. ✓ k = 4 × 10132 = 4 104 676 (D).

Why this works: Perfect powers are recognised from prime factorisations: n is a perfect m-th power exactly when every exponent is a multiple of m.

Problem S02

Number theoryShort answer

What are the last two digits of 32026? (Give them as a two-digit number.)

Hint

Find the smallest power of 3 that ends in 01.

Full worked solution

Answer: 29

  1. We need 32026 mod 100. Find a power of 3 that is ≡ 1 (mod 100).
  2. 35 = 243 ≡ 43. Square: 310 ≡ 432 = 1849 ≡ 49.
  3. Square again: 320 ≡ 492 = 2401 ≡ 1 (mod 100). So the last two digits repeat every 20 powers.
  4. 2026 = 20 × 101 + 6, so 32026 ≡ 36 (mod 100).
  5. 36 = 729, so the last two digits are 29.

Why this works: Once a power is ≡ 1 mod 100 the last two digits cycle. Repeated squaring (35, 310, 320) finds the cycle quickly.

Problem S03

Number theoryShort answer

For how many whole numbers n with 1 ≤ n ≤ 2026 is n2 + n + 1 divisible by 7?

Hint

Only n modulo 7 matters. Test n = 0, 1, …, 6.

Full worked solution

Answer: 579

  1. Whether 7 divides n2 + n + 1 depends only on n mod 7.
  2. Test n = 0, 1, 2, 3, 4, 5, 6: n2 + n + 1 = 1, 3, 7, 13, 21, 31, 43. Only n ≡ 2 (7) and n ≡ 4 (21) are multiples of 7.
  3. Numbers from 1 to 2026 of the form 7k + 2: need 7k + 2 ≤ 2026, so k = 0, 1, …, 289: 290 numbers.
  4. Of the form 7k + 4: 7k + 4 ≤ 2026 gives k ≤ 288.9, so k = 0 to 288: 289 numbers.
  5. Total: 290 + 289 = 579.

Why this works: Divisibility by 7 of a polynomial in n depends only on n mod 7, so a check of 7 cases settles every n; then it is a counting exercise.

Problem S04

Number theoryMultiple choice

What is the sum of all the positive divisors of 1000 that are perfect squares?

Hint

1000 = 23 × 53. A square divisor uses even powers only.

Full worked solution

Answer: C, 130

  1. 1000 = 23 × 53, so its divisors are 2a5b with a, b from 0 to 3.
  2. A divisor is a perfect square when both exponents are even: a, b ∈ {0, 2}.
  3. The square divisors are 1, 4, 25, 100.
  4. Their sum is 1 + 4 + 25 + 100 = 130, which also equals (1 + 22)(1 + 52) = 5 × 26.
  5. Answer: 130 (C).

Why this works: Sums over divisors factorise: the sum of 2a5b over the allowed a and b is (sum of allowed 2-powers) × (sum of allowed 5-powers).

Problem S05

Number theoryShort answer

How many pairs of integers (x, y) (positive, negative or zero) satisfy x2 − y2 = 2025?

Hint

Factorise: (x − y)(x + y) = 2025. What must be true of the two factors?

Full worked solution

Answer: 30

  1. Factorise: x2 − y2 = (x − y)(x + y) = 2025. Put u = x − y and v = x + y, so uv = 2025.
  2. Conversely x = (u + v)/2 and y = (v − u)/2, which are integers exactly when u and v have the same parity.
  3. 2025 is odd, so any factor pair (u, v) has both factors odd: every factor pair gives a solution, and different pairs give different (x, y).
  4. 2025 = 34 × 52 has (4 + 1)(2 + 1) = 15 positive divisors, so 15 ordered pairs (u, v) with u, v > 0.
  5. Negative pairs (−u, −v) also multiply to 2025: another 15.
  6. Total: 30 integer solutions (for example u = 1, v = 2025 gives x = 1013, y = 1012).

Why this works: A difference of squares factorises, and the change of variables (u, v) ↔ (x, y) is one-to-one as long as u and v have the same parity.

Problem S06

Number theoryShort answer

For how many bases b with 2 ≤ b ≤ 2026 is the number 2026, written in base b, a palindrome (reads the same forwards and backwards)?

Hint

Split by the number of digits. Two digits: 2026 = a(b + 1). Three digits: 13 ≤ b ≤ 45.

Full worked solution

Answer: 5

  1. Split by the number of digits of 2026 in base b.
  2. Two digits happen for 46 ≤ b ≤ 2026 (b2 > 2026). A two-digit palindrome is ‘aa’ = a(b + 1) with 1 ≤ a < b.
  3. So b + 1 divides 2026 = 2 × 1013: b + 1 = 1013 (a = 2, b = 1012) or b + 1 = 2026 (a = 1, b = 2025). (b + 1 = 2 is too small.)
  4. Three digits happen when b2 ≤ 2026 < b3, i.e. 13 ≤ b ≤ 45. A palindrome ‘a c a’ means 2026 = a(b2 + 1) + cb.
  5. Checking these bases: b = 13 gives digits 11, 12, 11 (11 × 170 + 12 × 13 = 2026); b = 14 gives 10, 4, 10 (10 × 197 + 56); b = 45 gives 1, 0, 1 (2025 + 1). No other base in 13–45 works.
  6. For b ≤ 12 the number has four or more digits, and none of those representations is a palindrome.
  7. Total: bases 13, 14, 45, 1012, 2025: 5.

Why this works: Base-b digits come from repeated division, and fixing the number of digits turns ‘palindrome’ into a small equation in b. Two-digit palindromes are always multiples of b + 1.

Problem S07

Number theoryMultiple choice

1013 is prime. What is the smallest positive integer n such that n! is divisible by 20262?

Hint

20262 = 22 × 10132. How big must n be for n! to contain 1013 twice?

Full worked solution

Answer: D, 2026

  1. 20262 = 22 × 10132, so n! needs at least two factors of the prime 1013 (the 2s are easy).
  2. The prime 1013 appears in n! once for each multiple of 1013 that is at most n (10132 is far bigger than any n here).
  3. Two factors need two multiples of 1013: 1013 and 2026. So n ≥ 2026.
  4. 2026! contains 1013 and 2026 = 2 × 1013, and plenty of 2s, so it is divisible by 20262.
  5. The smallest n is 2026 (D). (1013! up to 2025! contain 1013 only once.)

Why this works: Legendre’s idea: the power of a prime p in n! counts multiples of p, p2, … up to n. For a large prime only the multiples of p itself matter.

Combinatorics (7 problems)

Problem S08

CombinatoricsShort answer

A 2 by 8 board is tiled with 1 by 2 dominoes (either way round) and 2 by 2 squares. How many tilings are there?

Hint

Let t(n) be the number of tilings of a 2 by n board. How can the left edge be covered?

Full worked solution

Answer: 171

  1. Let t(n) be the number of tilings of a 2 by n board.
  2. Look at the left-hand column. Either a vertical domino covers it (leaving 2 by (n − 1)), or two horizontal dominoes cover the first two columns, or a 2 by 2 square does (each leaving 2 by (n − 2)).
  3. So t(n) = t(n − 1) + 2 t(n − 2).
  4. Start: t(0) = 1 (the empty board) and t(1) = 1 (one vertical domino).
  5. Then t(2) = 3, t(3) = 5, t(4) = 11, t(5) = 21, t(6) = 43, t(7) = 85.
  6. t(8) = 85 + 2 × 43 = 171.

Why this works: Tilings of strips satisfy linear recurrences found by asking how the first column is covered. Here t(n) = (2n+1 + (−1)n)/3, the Jacobsthal numbers.

Problem S09

CombinatoricsShort answer

How many strings of 8 letters, each A or B, never contain three identical letters in a row?

Hint

Such a string is made of runs of length 1 or 2 that alternate between A and B.

Full worked solution

Answer: 68

  1. A good string splits into runs of equal letters, each of length 1 or 2, alternating A and B.
  2. Once the first letter is chosen (2 ways), the letters are forced by the run lengths, so count sequences of 1s and 2s adding to 8.
  3. Let c(n) be the number of sequences of 1s and 2s adding to n: the last part is 1 or 2, so c(n) = c(n − 1) + c(n − 2), with c(1) = 1, c(2) = 2.
  4. c(3) = 3, c(4) = 5, c(5) = 8, c(6) = 13, c(7) = 21, c(8) = 34.
  5. Total: 2 × 34 = 68.

Why this works: Describing strings by run lengths separates ‘which letter’ (fixed once the first is chosen) from ‘how long each run is’, a composition count.

Problem S10

CombinatoricsShort answer

Three vertices of a regular 12-sided polygon are chosen to form a triangle. How many of the possible triangles are obtuse?

Hint

An inscribed triangle is obtuse exactly when all three vertices lie strictly within a half of the circle.

Full worked solution

Answer: 120

  1. An angle inscribed in a circle is obtuse exactly when it stands on an arc greater than a semicircle; so a triangle is obtuse when its three vertices lie inside an arc smaller than a semicircle.
  2. On a regular 12-gon, neighbouring vertices are 30° apart, so ‘less than a semicircle’ means the three vertices lie among 6 consecutive vertices (spanning at most 150°).
  3. Count each obtuse triangle from its first vertex going clockwise: choose that vertex (12 ways), then the other two from the next 5 vertices: C(5, 2) = 10.
  4. Each obtuse triangle has exactly one such first vertex, so there are 12 × 10 = 120.
  5. Check: of C(12, 3) = 220 triangles, 60 are right-angled (a diameter, 6 ways, and a third vertex, 10 ways), and 220 − 120 − 60 = 40 acute.
  6. Answer: 120.

Why this works: An inscribed angle is obtuse when it stands on an arc greater than a semicircle. Counting from a canonical starting vertex avoids counting the same triangle several times.

Problem S11

CombinatoricsShort answer

How many paths from (0, 0) to (6, 6), using unit steps right or up, avoid every point whose coordinates are both odd?

Hint

From a point with both coordinates even, where can the path go next, and what must the step after that be?

Full worked solution

Answer: 20

  1. The path starts at (0, 0), where both coordinates are even.
  2. From an even–even point, one step makes exactly one coordinate odd.
  3. The next step must not make both odd, so it must change the same coordinate again, back to even: the path moves in double steps RR or UU between even–even points.
  4. So the path is a route on the grid of even points, from (0, 0) to (6, 6) in steps of 2: 3 double steps right and 3 double steps up.
  5. Number of routes: C(6, 3) = 20.

Why this works: Spotting an invariant (you can only be at an odd coordinate for one step at a time) turns the problem into a smaller, familiar one.

Problem S12

CombinatoricsMultiple choice

Six different books are given to three students so that each student gets at least one book. In how many ways can this be done?

Hint

Count all 36 ways, then remove those where somebody gets nothing (inclusion–exclusion).

Full worked solution

Answer: C, 540

  1. Each book goes to one of 3 students: 36 = 729 ways, but some leave a student with nothing.
  2. Ways where a particular student gets nothing: 26 = 64. Three students: 3 × 64 = 192.
  3. Ways where two particular students get nothing (all books to the third) were subtracted twice: there are 3 of them, so add 3 back.
  4. No way leaves all three with nothing.
  5. Inclusion–exclusion: 729 − 192 + 3 = 540 (C).

Why this works: ‘Every box non-empty’ is the classic inclusion–exclusion count of onto functions: kn − C(k,1)(k − 1)n + C(k,2)(k − 2)n − ….

Problem S13

CombinatoricsShort answer

How many whole numbers from 1 to 10 000 have digits that add up to 10?

Hint

Treat numbers below 10 000 as four-digit strings with leading zeros. Stars and bars, then remove strings with a ‘digit’ of 10.

Full worked solution

Answer: 282

  1. Write every number from 0 to 9999 as four digits d1d2d3d4 (with leading zeros). 0 has digit sum 0, so it never counts.
  2. Count solutions of d1 + d2 + d3 + d4 = 10 with di ≥ 0: stars and bars, C(13, 3) = 286.
  3. Remove the ones where some ‘digit’ is 10 or more: that digit is 10 and the others 0: 4 cases. (Two digits ≥ 10 is impossible.)
  4. So 286 − 4 = 282 numbers below 10 000.
  5. 10 000 has digit sum 1, so the answer is 282.

Why this works: Leading zeros make every number the same length so stars and bars applies; the digit cap of 9 is handled by subtracting the few overflows.

Problem S14

CombinatoricsMultiple choice

How many ways can the numbers 1, 2, 3, 4, 5, 6 be arranged in a row so that every number is at most one place away from its own position (number k in position k−1, k or k+1)?

Hint

Look at number 1: it stays in place, or it swaps with 2.

Full worked solution

Answer: C, 13

  1. Let a(n) be the number of arrangements of 1 to n with every number at most one place from home.
  2. Look at number 1. If it stays in position 1, the other n − 1 numbers form the same problem: a(n − 1) ways.
  3. If 1 moves to position 2, position 1 must be filled by 2 (no other number may move that far). So 1 and 2 swap, and the rest is the problem for n − 2: a(n − 2) ways.
  4. So a(n) = a(n − 1) + a(n − 2), with a(1) = 1 and a(2) = 2.
  5. a(3) = 3, a(4) = 5, a(5) = 8, a(6) = 13 (C).

Why this works: Local rules (each item moves at most one place) force the arrangement into fixed points and adjacent swaps, which gives a Fibonacci recurrence.

Geometry (7 problems)

Problem S15

GeometryMultiple choice

Triangle ABC has AB = AC = 10 and BC = 12. What is the distance between the centre of its inscribed circle and the centre of its circumscribed circle?

Hint

Both centres lie on the axis of symmetry. Find the height, the inradius r and the circumradius R.

Full worked solution

Answer: B, 5/4

  1. Put B = (−6, 0), C = (6, 0) and A = (0, 8): AB = AC = √(36 + 64) = 10. Both centres lie on the axis x = 0.
  2. Area = ½ × 12 × 8 = 48 and half-perimeter s = (10 + 10 + 12)/2 = 16, so the inradius r = 48/16 = 3: the incentre is (0, 3).
  3. Circumradius R = abc/(4 × area) = (10 × 10 × 12)/192 = 25/4. The circumcentre is 25/4 below A: (0, 8 − 25/4) = (0, 7/4).
  4. Distance: 3 − 7/4 = 5/4.
  5. Check with Euler’s formula OI2 = R(R − 2r) = (25/4)(1/4) = 25/16, so OI = 5/4. ✓ Answer 5/4 (B).

Why this works: Symmetry puts both centres on one line, so the distance is a subtraction. Euler’s formula OI2 = R(R − 2r) gives an independent check.

Problem S16

GeometryMultiple choice

A circle is inscribed in a right-angled triangle with sides 3, 4, 5. A smaller circle sits in the right-angle corner, touching both shorter sides and the inscribed circle. What is its radius?

Hint

Put the right angle at the origin. The inscribed circle has radius 1 and centre (1, 1). The small circle’s centre is (t, t).

Full worked solution

Answer: B, 3 − 2√2

  1. Put the right angle at the origin with the legs along the axes (lengths 3 and 4).
  2. Inradius of a right triangle: r = (3 + 4 − 5)/2 = 1, so the incircle has centre (1, 1) and radius 1.
  3. A circle touching both axes has centre (t, t) and radius t.
  4. It touches the incircle from outside, so the distance between centres is 1 + t: √2 (1 − t) = 1 + t.
  5. Solve: t(1 + √2) = √2 − 1, so t = (√2 − 1)/(√2 + 1) = (√2 − 1)2 = 3 − 2√2.
  6. The radius is 3 − 2√2 ≈ 0.17 (B).

Why this works: Circles tangent to both arms of a right angle have centres on the bisector y = x, so tangency becomes one distance equation. Rationalising the denominator gives the neat form.

Problem S17

GeometryMultiple choice

What is the area of the region of points (x, y) with |x| + |y| ≤ 4 and x2 + y2 ≥ 8?

Hint

|x| + |y| ≤ 4 is a square turned on its corner. How far is its edge from the origin?

Full worked solution

Answer: A, 32 − 8π

  1. |x| + |y| ≤ 4 is a square turned on its corner, with vertices (±4, 0) and (0, ±4); its diagonals are 8, so its area is 8 × 8 ÷ 2 = 32.
  2. x2 + y2 ≥ 8 is everything outside the circle of radius √8 = 2√2 about the origin.
  3. The distance from the origin to the side x + y = 4 is 4/√2 = 2√2, exactly the radius: the circle touches each side and lies inside the square.
  4. So the region is the square with the whole disc removed: area 32 − π × 8.
  5. Answer: 32 − 8π ≈ 6.9 (A).

Why this works: Recognising |x| + |y| ≤ c as a rotated square and comparing the distance to its sides with the radius tells you whether the shapes overlap before any integration.

Problem S18

GeometryMultiple choice

What is the volume of a regular tetrahedron whose edges all have length 6?

Hint

The base is an equilateral triangle of side 6. The apex is above the base’s centre, at distance 2√3 from each base corner.

Full worked solution

Answer: B, 18√2

  1. The base is an equilateral triangle of side 6: area (√3/4) × 36 = 9√3.
  2. The apex is directly above the centre of the base. The centre is 2/3 of the way along a median; the median has length 3√3, so the centre is 2√3 from each base vertex.
  3. Height, by Pythagoras on an edge: h = √(62 − (2√3)2) = √(36 − 12) = √24 = 2√6.
  4. Volume = ⅓ × base × height = ⅓ × 9√3 × 2√6 = 6√18 = 18√2.
  5. Answer: 18√2 ≈ 25.5 (B).

Why this works: Volume = ⅓ × base × height for any pyramid; the height comes from Pythagoras once you know the apex is above the centroid of the base.

Problem S19

GeometryMultiple choice

Triangle ABC has a right angle at C, with CA = 6 and CB = 8. The bisector of angle C meets AB at D. What is the length CD?

Hint

Split the triangle into triangles ACD and BCD and add their areas, using the 45° angles at C.

Full worked solution

Answer: C, 24√2/7

  1. The bisector splits the right angle at C into two 45° angles. Let CD = d.
  2. Triangle ACD has sides 6 and d with the 45° angle between them: area ½ × 6 × d × sin 45°.
  3. Triangle BCD: area ½ × 8 × d × sin 45°.
  4. Together they make triangle ABC, area ½ × 6 × 8 = 24: ½ × 14 × d × (√2/2) = 24, i.e. (7√2/2) d = 24.
  5. d = 48/(7√2) = 48√2/14 = 24√2/7.
  6. CD = 24√2/7 ≈ 4.85 (C).

Why this works: Adding areas with the ½ab sin C formula is a quick route to any angle-bisector length: here d = 2ab cos(C/2)/(a + b).

Problem S20

GeometryMultiple choice

An ant walks on the outside surface of a closed 3 by 4 by 5 box, from one corner to the opposite corner. What is the length of the shortest possible route?

Hint

Unfold two faces into a flat rectangle. There are three different ways to do it.

Full worked solution

Answer: B, √74

  1. The shortest route on the surface crosses two faces; unfolding those faces flat turns it into a straight line, the diagonal of a rectangle.
  2. Unfolding pairs the edges in three ways: the rectangle is (a + b) by c for any split of the edges 3, 4, 5.
  3. (3 + 4) by 5: √(49 + 25) = √74.
  4. (3 + 5) by 4: √(64 + 16) = √80. (4 + 5) by 3: √(81 + 9) = √90.
  5. The shortest is √74 ≈ 8.6. (√50, the space diagonal, would go through the inside of the box.)
  6. Answer: √74 (B).

Why this works: Shortest paths on a surface become straight lines once the surface is flattened. Try every way of flattening and keep the best: here, add the two shortest edges.

Problem S21

GeometryShort answer

How many points with integer coordinates lie strictly inside the ellipse x2/16 + y2/9 = 1?

Hint

For each integer x from −3 to 3, find how many integers y work.

Full worked solution

Answer: 31

  1. Strictly inside means x2/16 + y2/9 < 1, so |x| ≤ 3 and |y| ≤ 2 (x = ±4 or y = ±3 give at least 1).
  2. For each x, we need y2 < 9(1 − x2/16).
  3. x = 0: y2 < 9, y = −2 to 2 (5). x = ±1: y2 < 8.44 (5 each). x = ±2: y2 < 6.75 (5 each).
  4. x = ±3: y2 < 9 × 7/16 ≈ 3.94, so y = −1, 0, 1 (3 each).
  5. Total: 5 + 10 + 10 + 6 = 31.

Why this works: Counting lattice points column by column only needs the height of the curve at each integer x. Be careful at the edges: ‘strictly inside’ excludes (0, ±3) and (±4, 0).

Algebra (7 problems)

Problem S22

AlgebraShort answer

What is the sum of the squares of the roots of x3 − 4x2 + x + 6 = 0?

Hint

Use α2 + β2 + γ2 = (α + β + γ)2 − 2(αβ + βγ + γα).

Full worked solution

Answer: 14

  1. Let the roots be α, β, γ. From x3 − 4x2 + x + 6 (Vieta): α + β + γ = 4 and αβ + βγ + γα = 1.
  2. Use (α + β + γ)2 = α2 + β2 + γ2 + 2(αβ + βγ + γα).
  3. So α2 + β2 + γ2 = 42 − 2 × 1 = 14.
  4. Check: the cubic factorises as (x + 1)(x − 2)(x − 3), and 1 + 4 + 9 = 14. ✓ Answer 14.

Why this works: Symmetric expressions in the roots can be read straight from the coefficients (Vieta’s formulas) without solving the equation.

Problem S23

AlgebraMultiple choice

Solve log2 x + log4 x + log8 x = 11.

Hint

Write every logarithm in base 2: log4 x = (log2 x)/2.

Full worked solution

Answer: C, x = 64

  1. Change every logarithm to base 2: log4 x = (log2 x)/2 and log8 x = (log2 x)/3.
  2. Let L = log2 x. Then L + L/2 + L/3 = 11.
  3. L(6 + 3 + 2)/6 = 11L/6 = 11, so L = 6.
  4. x = 26 = 64.
  5. Check: log2 64 + log4 64 + log8 64 = 6 + 3 + 2 = 11. ✓ x = 64 (C).

Why this works: Change of base, logbk x = (logb x)/k, puts every term in the same unknown.

Problem S24

AlgebraShort answer

Real numbers x and y satisfy 3x + 4y = 25. What is the smallest possible value of x2 + y2?

Hint

x2 + y2 is the square of the distance from the origin to the point (x, y) on a line.

Full worked solution

Answer: 25

  1. x2 + y2 is the squared distance from the origin to the point (x, y), which lies on the line 3x + 4y = 25.
  2. The shortest distance from the origin to the line ax + by = c is |c|/√(a2 + b2) = 25/√(9 + 16) = 5.
  3. It is reached at the foot of the perpendicular, (3, 4): indeed 3 × 3 + 4 × 4 = 25.
  4. So the minimum of x2 + y2 is 52 = 25.
  5. (Cauchy–Schwarz gives the same: 252 = (3x + 4y)2 ≤ (9 + 16)(x2 + y2).) Answer 25.

Why this works: A quadratic expression like x2 + y2 often has a geometric meaning; minimising distance to a line is the perpendicular.

Problem S25

AlgebraMultiple choice

A function f satisfies f(x) + 2f(1 − x) = 3x2 for every real x. What is f(2)?

Hint

Put x = 2 and also x = −1 (so that 1 − x = 2).

Full worked solution

Answer: A, −2

  1. Put x = 2: f(2) + 2f(−1) = 3 × 4 = 12.
  2. Put x = −1 (so that 1 − x = 2): f(−1) + 2f(2) = 3.
  3. From the second equation, f(−1) = 3 − 2f(2).
  4. Substitute into the first: f(2) + 6 − 4f(2) = 12, so −3f(2) = 6.
  5. f(2) = −2 (A). (Then f(−1) = 7; check: −2 + 14 = 12 ✓.)

Why this works: Swapping x with 1 − x gives a second equation in the same two unknowns, so a pair of simultaneous equations appears.

Problem S26

AlgebraMultiple choice

An infinite geometric series has sum 12. The series formed by squaring each of its terms has sum 48. What is the first term of the original series?

Hint

a/(1 − r) = 12 and a2/(1 − r2) = 48. Divide one by the other.

Full worked solution

Answer: C, 6

  1. Let the first term be a and the ratio r, with |r| < 1. Then a/(1 − r) = 12.
  2. Squaring each term gives a geometric series with first term a2 and ratio r2: a2/(1 − r2) = 48.
  3. Divide, using 1 − r2 = (1 − r)(1 + r): [a2/((1 − r)(1 + r))] ÷ [a/(1 − r)] = a/(1 + r) = 48/12 = 4.
  4. So a = 12(1 − r) and a = 4(1 + r): 12 − 12r = 4 + 4r, giving r = 1/2 and a = 6.
  5. Check: 6 + 3 + 1.5 + … = 12 and 36 + 9 + 2.25 + … = 48. ✓ The first term is 6 (C).

Why this works: Factorising 1 − r2 = (1 − r)(1 + r) makes the ratio of the two sums simple. Always check |r| < 1 so both series converge.

Problem S27

AlgebraMultiple choice

How many real solutions does the equation x = 3 sin x have?

Hint

Sketch y = x and y = 3 sin x. Where can they meet, given that |3 sin x| ≤ 3?

Full worked solution

Answer: C, 3

  1. Any solution has |x| = |3 sin x| ≤ 3, so all solutions lie in −3 ≤ x ≤ 3.
  2. x = 0 is a solution.
  3. For 0 < x ≤ 3 look at g(x) = 3 sin x − x: g(0) = 0 and g′(0) = 3 − 1 = 2 > 0, so g is positive just after 0.
  4. g(3) = 3 sin 3 − 3 ≈ 0.42 − 3 < 0, so g crosses zero somewhere in (0, 3). On (0, 3), g″(x) = −3 sin x < 0, so g is concave and can cross zero only once there.
  5. g is odd (g(−x) = −g(x)), so there is exactly one negative solution too.
  6. Total: 3 solutions (C) (x = 0 and x ≈ ±2.28).

Why this works: Bounding the region (|x| ≤ 3) and using symmetry and concavity turns a transcendental equation into a picture you can trust.

Problem S28

AlgebraShort answer

A quadratic P(x) has P(1) = 3, P(2) = 7 and P(3) = 13. What is P(10)?

Hint

Look at the differences 7 − 3 and 13 − 7. For a quadratic the second difference is constant.

Full worked solution

Answer: 111

  1. First differences: 7 − 3 = 4 and 13 − 7 = 6. Second difference: 2.
  2. For P(x) = ax2 + bx + c the second difference is 2a, so a = 1.
  3. Then P(1) = 1 + b + c = 3 and P(2) = 4 + 2b + c = 7. Subtracting: 3 + b = 4, so b = 1, and c = 1.
  4. P(x) = x2 + x + 1. Check P(3) = 13. ✓
  5. P(10) = 100 + 10 + 1 = 111.

Why this works: Finite differences identify polynomials: a quadratic has constant second differences equal to twice its leading coefficient.

Probability (6 problems)

Problem S29

ProbabilityMultiple choice

Two different numbers are chosen at random from 1 to 20. What is the probability that their product is a multiple of 6?

Hint

Count the bad pairs: those with no factor 2 or no factor 3 (inclusion–exclusion).

Full worked solution

Answer: B, 15/38

  1. Pairs of different numbers from 1 to 20: C(20, 2) = 190.
  2. The product fails to be a multiple of 6 when it has no factor 2 or no factor 3. Count those bad pairs.
  3. No factor 2: both numbers odd: C(10, 2) = 45.
  4. No factor 3: both from the 14 non-multiples of 3: C(14, 2) = 91.
  5. Neither factor: both from the 7 numbers coprime to 6 (1, 5, 7, 11, 13, 17, 19): C(7, 2) = 21. Bad pairs: 45 + 91 − 21 = 115.
  6. Good pairs: 190 − 115 = 75, probability 75/190 = 15/38 (B).

Why this works: ‘Divisible by 6’ fails when a factor 2 or a factor 3 is missing; counting the failures with inclusion–exclusion is cleaner than counting successes directly.

Problem S30

ProbabilityMultiple choice

A fair die is rolled three times. What is the expected number of different numbers that appear?

Hint

For each face, what is the probability that it appears at least once? Add these up.

Full worked solution

Answer: B, 91/36

  1. Let Ik be 1 if face k appears in the three rolls and 0 if not. The number of different faces is I1 + … + I6.
  2. Face k is missing from all three rolls with probability (5/6)3 = 125/216, so E[Ik] = 1 − 125/216 = 91/216.
  3. Expectation adds, even though the Ik depend on each other: E[total] = 6 × 91/216.
  4. 6 × 91/216 = 91/36 ≈ 2.53.
  5. Answer: 91/36 (B).

Why this works: Linearity of expectation: the expected value of a sum is the sum of expected values, even when the parts are dependent. Indicator variables make counts easy.

Problem S31

ProbabilityMultiple choice

Two numbers x and y are chosen independently and uniformly at random between 0 and 1. What is the probability that they differ by less than 1/3?

Hint

Draw the unit square. The points with |x − y| ≥ 1/3 form two triangles.

Full worked solution

Answer: C, 5/9

  1. The pair (x, y) is a random point in the unit square, so probabilities are areas.
  2. The region |x − y| ≥ 1/3 is two corner triangles: y ≤ x − 1/3 and y ≥ x + 1/3.
  3. Each is a right-angled isosceles triangle with legs 1 − 1/3 = 2/3, area ½ × (2/3)2 = 2/9.
  4. Together: 4/9.
  5. P(|x − y| < 1/3) = 1 − 4/9 = 5/9 (C).

Why this works: Two independent uniform choices are one random point in a square, so probabilities become areas; the complement here is two easy triangles.

Problem S32

ProbabilityMultiple choice

A fair coin is tossed 10 times. What is the probability that the number of heads is a multiple of 3 (counting 0 as a multiple of 3)?

Hint

Add C(10, k) for k = 0, 3, 6, 9.

Full worked solution

Answer: C, 341/1024

  1. The number of heads in 10 tosses is a multiple of 3 when it is 0, 3, 6 or 9.
  2. Count sequences with k heads: C(10, k). C(10, 0) = 1, C(10, 3) = 120, C(10, 6) = 210, C(10, 9) = 10.
  3. Favourable sequences: 1 + 120 + 210 + 10 = 341.
  4. All sequences: 210 = 1024.
  5. Probability: 341/1024 ≈ 0.333 (C).

Why this works: Counts of the form ‘k is a multiple of 3’ split the binomial coefficients into three nearly equal groups (a roots-of-unity filter shows why), which is why the answer is close to 1/3.

Problem S33

ProbabilityMultiple choice

The letters of BANANA are arranged in a random order (all distinct-looking arrangements equally likely). What is the probability that no two As are next to each other?

Hint

Arrange B, N, N first, then place the As in the gaps.

Full worked solution

Answer: C, 1/5

  1. Distinct arrangements of BANANA (3 A, 2 N, 1 B): 6!/(3! 2!) = 60, all equally likely.
  2. Arrange the non-A letters B, N, N first: 3!/2! = 3 ways.
  3. They leave 4 gaps (before, between, after): _ B _ N _ N _.
  4. No two As together means the three As go into three different gaps: C(4, 3) = 4 ways.
  5. Good arrangements: 3 × 4 = 12, probability 12/60 = 1/5 (C).

Why this works: ‘No two together’ is the gap method: place the other letters first, then choose different gaps for the ones that must be separated.

Problem S34

ProbabilityMultiple choice

1% of a population has a condition. A test detects it in 95% of people who have it, but also gives a positive result for 10% of people who do not. A randomly chosen person tests positive. What is the probability that they have the condition?

Hint

Imagine 10 000 people and count the positives of each kind.

Full worked solution

Answer: A, 19/217 ≈ 8.8%

  1. Think of 10 000 people. 1% have the condition: 100 people; 9900 do not.
  2. The test detects 95% of those with it: 95 true positives.
  3. It gives a positive for 10% of those without it: 990 false positives.
  4. All positives: 95 + 990 = 1085, of whom 95 have the condition.
  5. Probability: 95/1085 = 19/217 ≈ 8.8% (A).

Why this works: Bayes’ theorem in natural frequencies: when a condition is rare, false positives from the large healthy group can outnumber true positives.

Logic (6 problems)

Problem S35

LogicMultiple choice

Six people A–F are each a truth-teller or a liar. A: “B and E are different types.” B: “Exactly three of us six are liars.” C: “A and B are different types.” D: “A and F are different types.” E: “At most one of us is a truth-teller.” F: “B and C are different types.” Who are the truth-tellers?

Hint

Start with E. Could E be telling the truth?

Full worked solution

Answer: A, A, B, F

  1. Suppose E is a truth-teller. Then at most one person is truthful, so E is the only one, and A lies. A’s false claim means B and E are the same type, so B is truthful — two truth-tellers. Contradiction: E is a liar.
  2. E lies, so at least two people tell the truth.
  3. A says B ≠ E. Since E is a liar, this says ‘B is truthful’, so A and B are the same type.
  4. C says A ≠ B, which is false: C is a liar.
  5. F says B ≠ C, i.e. ‘B is truthful’ (C lies), so F is the same type as B. D says A ≠ F, which is false (A = B = F): D is a liar.
  6. If A, B, F also lied, nobody would be truthful, contradicting E’s lie. So A, B, F tell the truth, and B’s ‘exactly three liars’ (C, D, E) checks out.
  7. The truth-tellers are A, B and F (A).

Why this works: Once one liar is fixed, statements like ‘X and Y are different’ become ‘X is truthful’ or ‘X lies’, and the types propagate. Count-type claims then decide the last case.

Problem S36

LogicShort answer

What is the smallest number of different whole numbers you must choose from 1 to 30 to be certain that two of your chosen numbers add up to 31?

Hint

Group 1 to 30 into pairs that add to 31.

Full worked solution

Answer: 16

  1. Pair up 1 to 30 into the 15 pairs that add to 31: {1, 30}, {2, 29}, …, {15, 16}.
  2. Choosing one number from each pair, e.g. 1 to 15, gives 15 numbers with no two adding to 31 (the largest sum is 29). So 15 is not enough.
  3. With 16 numbers and only 15 pairs, two chosen numbers lie in the same pair (pigeonhole principle), and those two add to 31.
  4. So 16 always works and 15 does not.
  5. Answer: 16.

Why this works: The pigeonhole principle needs well-chosen ‘holes’: here the 15 pairs. An example with one fewer shows the bound is exactly right.

Problem S37

LogicShort answer

Two players take turns removing 1, 2 or 4 counters from a pile. The player who takes the last counter wins. For how many starting pile sizes from 1 to 50 does the second player have a winning strategy?

Hint

Work out the winning and losing positions for small piles and look for a pattern.

Full worked solution

Answer: 16

  1. Call a pile size losing if the player about to move loses with best play. 0 is losing (no counter to take: the previous player took the last).
  2. Moves remove 1, 2 or 4, which leave remainders 1, 2 or 1 on dividing by 3, never 0. So from a multiple of 3 every move leads to a non-multiple of 3.
  3. From a non-multiple of 3, removing 1 or 2 always reaches a multiple of 3.
  4. So by induction the losing positions are exactly the multiples of 3, and from any other pile the first player wins by moving to one.
  5. The second player wins for 3, 6, …, 48: 16 starting sizes.

Why this works: Classify positions as winning or losing from the end backwards; a pattern (here, multiples of 3, because 1, 2, 4 leave remainders 1, 2, 1) usually appears quickly and can then be proved.

Problem S38

LogicMultiple choice

Five boxes, numbered 1 to 5, carry labels. Box 1: “The prize is in an even-numbered box.” Box 2: “The prize is not in box 1.” Box 3: “The prize is in box 2 or box 5.” Box 4: “The label on box 3 is false.” Box 5: “The prize is in box 4.” Exactly one label is true. Which box holds the prize?

Hint

Labels 3 and 4 contradict each other, so exactly one of them is true. That uses up the one true label.

Full worked solution

Answer: A, Box 1

  1. Label 4 says label 3 is false, so labels 3 and 4 contradict each other: exactly one of them is true.
  2. Only one label is true in total, so labels 1, 2 and 5 are all false.
  3. Label 2 (‘not in box 1’) is false, so the prize is in box 1.
  4. Check the others: label 1 (even box) false ✓; label 5 (box 4) false ✓; label 3 (box 2 or 5) false, so label 4 is true — exactly one true label. ✓
  5. The prize is in box 1 (A).

Why this works: A pair of statements that contradict each other always contains exactly one truth. Using that to fill the ‘one true label’ quota makes all the others false at once.

Problem S39

LogicShort answer

The date 21 February 2012 written as DDMMYYYY is 21022012, which reads the same backwards. How many dates from 1 January 2000 to 31 December 2099 have this property?

Hint

If the year is 20ab, what do the day and the month have to be?

Full worked solution

Answer: 29

  1. The date is DDMMYYYY with the year 20ab, i.e. digits D D M M 2 0 a b.
  2. Reading backwards must give the same string, so the day is ‘ba’ and the month is ‘02’ (February).
  3. So every palindromic date is in February, and its day is the year’s last two digits reversed. Each valid February day gives exactly one year: day ba → year 20ab (e.g. 21 February → 2012).
  4. Days 01 to 28 always exist. Day 29 needs year 2092, which is a leap year, so 29 February 2092 exists.
  5. Days 30 and 31 do not exist in February.
  6. So there are 29 such dates (from 10 February 2001 to 29 February 2092).

Why this works: A palindrome condition fixes half of the string from the other half, so only the free half needs counting, subject to the calendar’s rules.

Problem S40

LogicShort answer

N is a whole number from 1 to 100. Of the following five statements, exactly four are true: (1) N is a multiple of 6. (2) N has exactly 6 positive divisors. (3) N > 50. (4) The digits of N add up to 9. (5) N is odd. What is N?

Hint

Statements (1) and (5) cannot both be true. So exactly one of them is false, and (2), (3), (4) are all true.

Full worked solution

Answer: 63

  1. Statement (1) says N is a multiple of 6, which is even; statement (5) says N is odd. They cannot both be true.
  2. Exactly four are true, so exactly one is false, and it must be (1) or (5). Hence (2), (3) and (4) are true: N has 6 divisors, N > 50 and its digits add to 9.
  3. If (1) is true, N is a multiple of 6 above 50 with digit sum 9: 54, 72 or 90. Their divisor counts are 8, 12 and 12, not 6. So (1) is false.
  4. So (5) is true: N is odd, above 50, with digit sum 9: 63 or 81.
  5. 63 = 32 × 7 has (2 + 1)(1 + 1) = 6 divisors; 81 = 34 has 5.
  6. N = 63.

Why this works: Find a pair of statements that clash; that tells you where the false one must be, and the rest become hard facts to filter with.

Keep going

Junior problems (ages 11 to 13) · Intermediate problems (ages 13 to 16) · Competitions, past papers and problem of the week