CBSE Math Revision Start revising
Extension & competition maths

Junior logic problems (ages 11 to 13)

27 original competition-style problems: truth-tellers, calendars, games and reasoning puzzles. Try each one before opening the hints; the second hint gives more away, and the full solution explains why the method works and where the idea leads.

Filter by strategy

Answer a problem to track what you have solved.

For teachers: project, add to a worksheet or set as homework

Press Project on any problem to show it full screen with a timer, the hints, 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). Switch on the ‘Add to worksheet’ buttons, pick problems, then print them from the worksheet builder or set them as homework for a class, with the full solutions as the mark scheme. Free problems are free for every class; problems marked ‘With a plan’ can be set by teachers with a plan or school licence. Ready-made sessions: maths club packs.

Your worksheet basket is empty.Open worksheet builderSet as homework

Problem J35

LogicMultiple choice

Amy, Ben, Cara and Dev each own a different pet: a dog, a cat, a fish and a rabbit. Amy’s pet is not the dog or the fish. Ben’s pet is not the dog or the fish. Cara does not own the rabbit. Dev owns neither the cat nor the dog. Amy is allergic to cats. Who owns the fish?

Hint

Amy can only have one pet. Then look at who can have the dog.

Second hint

Amy and Ben both avoid the dog and the fish, so they own the cat and the rabbit between them.

Full worked solution

Answer: D, Dev

  1. Amy: not the dog, not the fish, and (allergic) not the cat, so Amy has the rabbit.
  2. Who can have the dog? Not Amy, not Ben (clue), not Dev (clue), so Cara has the dog.
  3. Left: the cat and the fish for Ben and Dev.
  4. Dev does not have the cat, so Dev has the fish (and Ben the cat, which fits Ben’s clue).
  5. Dev owns the fish (D).

Why this works: In a logic grid, look for the person (or pet) with only one option left, fix it, and let that knock out options elsewhere. Each clue is used when it bites.

Where it leads: When two people share the same restrictions, they must share the same small set of options: a pigeonhole idea inside a logic grid.

Strategy: Organised cases

Problem J36

LogicMultiple choice

Each of five people A, B, C, D, E is either a truth-teller (always tells the truth) or a liar (always lies). A says: “B and C are the same type.” B says: “Exactly three of us five are liars.” C says: “D is a truth-teller.” D says: “C and E are the same type.” E says: “B is a truth-teller.” Who are the truth-tellers?

Hint

B and E stand or fall together (E vouches for B). Try B truthful and B lying.

Second hint

If B tells the truth there are exactly three liars; check whether A, C and D can then be consistent.

Full worked solution

Answer: B, B and E

  1. “X is a truth-teller” is true exactly when speaker and X are the same type. So E and B are the same type, and C and D are the same type.
  2. Suppose C and D are truth-tellers. D says C and E are the same type, so E is truthful, hence B too. Then at most A lies, but B (truthful) says exactly three lie. Contradiction.
  3. So C and D are liars.
  4. D’s statement is false: C and E are different types, so E is a truth-teller, and therefore B is too.
  5. B is truthful, so exactly three lie: with C, D lying, A must be the third liar.
  6. Check A: A says B and C are the same type; B truthful, C liar, so it is false, as a liar’s must be. ✓
  7. The truth-tellers are B and E (B).

Why this works: Pick the statement that links two people and test both cases. A truth-teller’s statement must be true and a liar’s false; a consistent assignment is one where every statement checks out.

Where it leads: Statements about how many people are liars are self-referential; checking each possible count is often quicker than checking each person.

Strategy: Organised cases, Proof techniques

Problem J37

LogicMultiple choice

In a year that is not a leap year, 1 March is a Tuesday. On what day of the week is 25 December?

Hint

Count the days from 1 March to 25 December and find the remainder when you divide by 7.

Second hint

From 1 March to 25 December is 299 days; 299 = 7 × 42 + 5.

Full worked solution

Answer: C, Sunday

  1. Count the days from 1 March to 25 December.
  2. Full months from 1 March to 1 December: 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30 = 275 days.
  3. From 1 December to 25 December: 24 more days. Total 299 days.
  4. Days of the week repeat every 7: 299 = 7 × 42 + 5, so the weekday moves on 5 places.
  5. Tuesday + 5: Wednesday, Thursday, Friday, Saturday, Sunday.
  6. 25 December is a Sunday (C).

Why this works: Days of the week repeat every 7, so only the remainder on division by 7 matters. Starting from 1 March avoids the leap-day question altogether.

Where it leads: Calendar questions are arithmetic modulo 7; Zeller’s congruence turns any date into a weekday by formula.

Strategy: Parity and remainders

Problem J38

LogicShort answer

Zak writes out every whole number from 1 to 300. How many times does he write the digit 0?

Hint

Count zeros in the units place and in the tens place separately.

Second hint

Units-place zeros: 10, 20, …, 300. Tens-place zeros: 100–109, 200–209, 300.

Full worked solution

Answer: 51

  1. Count zeros place by place.
  2. Units place: 10, 20, …, 300 end in 0: 30 zeros.
  3. Tens place (only three-digit numbers have one that can be 0): 100–109 (10 numbers), 200–209 (10), and 300 (1): 21 zeros.
  4. Hundreds place is never 0.
  5. Total: 30 + 21 = 51.

Why this works: Counting place by place is cleaner than counting number by number, because each place follows a simple repeating pattern.

Where it leads: 0 behaves differently from other digits because we never write leading zeros.

Strategy: Organised cases

Problem J39

LogicShort answer

Six teams play in a league. Each pair of teams plays once. A win earns 3 points, a draw 1 point each and a loss 0. The teams scored 40 points in total. How many games were draws?

Hint

How many games are there, and how many points does each game hand out?

Second hint

15 games. A game with a winner gives out 3 points, a draw gives out 2.

Full worked solution

Answer: 5

  1. Each pair of teams plays once: 6 × 5 ÷ 2 = 15 games.
  2. A game with a winner hands out 3 points in total; a draw hands out 1 + 1 = 2.
  3. If all 15 games had winners the total would be 45.
  4. Each draw lowers the total by 1. The total was 40, so 45 − 40 = 5 games were draws.
  5. Check: 10 wins × 3 + 5 draws × 2 = 30 + 10 = 40. ✓ Answer 5.

Why this works: Instead of tracking every team, look at what each game adds to the total. The total then tells you how many games were of each kind.

Where it leads: If all games had winners the total would be 45; each draw lowers it by 1.

Strategy: Extremal principle, Working backwards

Problem J40

LogicMultiple choice

Kai, Lu, Mo, Ned, Ola and Pip ran a race with no ties. Ola won and Ned came last. Mo finished directly behind Kai, and Lu finished two places behind Kai. Pip did not come second. In which place did Pip finish?

Hint

Kai, Mo and Lu fill three places in a row. Where can that block go between 2nd and 5th?

Second hint

The block Kai, Mo, _, Lu (with one gap) must fit between 2nd and 5th place; try Kai in 2nd and Kai in 3rd.

Full worked solution

Answer: D, 5th

  1. Ola is 1st and Ned 6th, so places 2 to 5 are for Kai, Mo, Lu and Pip.
  2. Mo is directly behind Kai and Lu two places behind Kai, so Kai, Mo, Lu are three consecutive places in that order.
  3. Inside places 2 to 5 this block is either 2, 3, 4 (Pip 5th) or 3, 4, 5 (Pip 2nd).
  4. Pip did not come 2nd, so the block is Kai 2nd, Mo 3rd, Lu 4th.
  5. Pip finished 5th (D).

Why this works: Fix the most constrained pieces first (the three runners who must be consecutive). Then only a couple of cases remain, and the last clue picks one.

Where it leads: Placing the largest rigid block first is the quickest way through ordering puzzles.

Strategy: Organised cases

Problem J145

LogicMultiple choice

Each of Ada, Bea and Cy is either a truth-teller (always tells the truth) or a liar (always lies). Ada says: ‘Exactly one of us three is a truth-teller.’ Bea says: ‘Ada is a liar.’ Cy says: ‘Ada and Bea are the same type.’ Who is a truth-teller?

Hint

Bea and Ada must be different types. Why?

Second hint

Try ‘Ada tells the truth’ and ‘Ada lies’ in turn.

Full worked solution

Answer: A, Ada only

  1. Bea says Ada is a liar, so Bea and Ada are different types (if Bea is truthful Ada lies; if Bea lies Ada is truthful).
  2. So Cy’s statement ‘Ada and Bea are the same type’ is false: Cy is a liar.
  3. If Ada were a liar, Bea would be the only truth-teller, making Ada’s statement true: a contradiction.
  4. So Ada tells the truth, Bea and Cy lie, and indeed exactly one is truthful. Answer: Ada only (A).

Why this works: Pinning down the relationship between two people first (they must differ) settles Cy at once and leaves just one case to test.

Where it leads: Truth-teller puzzles are propositional logic: each person gives an equation ‘TX ⇔ statement’. Computers solve huge versions with SAT solvers.

Strategy: Organised cases, Proof techniques

Problem J146

LogicShort answer

What is the greatest number of Sundays that can fall in the first 100 days of a year?

Hint

How many complete weeks are in 100 days, and how many days are left over?

Second hint

100 = 14 × 7 + 2.

Full worked solution

Answer: 15

  1. 100 days = 14 complete weeks + 2 extra days.
  2. The 14 complete weeks contain exactly 14 Sundays.
  3. The 2 extra days can include one more Sunday (if the year starts on a Saturday or a Sunday).
  4. The greatest number is 15.

Why this works: Splitting into complete weeks plus a remainder shows which days can get one extra appearance.

Where it leads: How many Friday the 13ths can a year have? Using the same remainder idea, every year has at least one and at most three.

Strategy: Parity and remainders, Extremal principle

Problem J147

LogicShort answer

A clock gains 5 minutes every hour. It is set to the correct time at noon. After how many real hours will it first be showing a time exactly one hour ahead of the correct time?

Hint

How much does it gain in total each hour?

Second hint

It needs to gain 60 minutes.

Full worked solution

Answer: 12 hours

  1. The clock gains 5 minutes per real hour.
  2. To be an hour (60 minutes) ahead it must gain 60 minutes: 60 ÷ 5 = 12 hours.
  3. At midnight the correct time is 12:00 and the clock shows 1:00.

Why this works: A steady gain builds up in proportion to time, so ‘how long until it gains X’ is a single division.

Where it leads: A clock that gains 12 hours shows the right time again (on a 12-hour face): here after 144 hours, i.e. 6 days.

Strategy: Spot the pattern and generalise

Problem J148

LogicShort answer

A class has 30 students. What is the largest number n for which you can be certain that at least n of the students were born in the same month?

Hint

Try to spread the birthdays as evenly as possible over the 12 months.

Second hint

30 = 12 × 2 + 6.

Full worked solution

Answer: 3

  1. If every month had at most 2 birthdays, there would be at most 24 students. There are 30, so some month has at least 3.
  2. But 4 is not certain: the birthdays could be 3 in each of six months and 2 in each of the other six (18 + 12 = 30).
  3. So the largest certain number is 3.

Why this works: The pigeonhole principle gives the guarantee, and an even spread shows nothing larger is guaranteed: both halves are needed.

Where it leads: In general, n objects in k boxes force some box to hold at least ⌈n/k⌉. A related surprise: with only 23 people, two probably share a birthday.

Strategy: Pigeonhole principle, Extremal principle

Problem J149

LogicShort answer

The pages of a book are numbered 1, 2, 3, … Printing all the page numbers uses 189 digits altogether. How many pages does the book have?

Hint

How many digits do pages 1 to 9 use?

Second hint

Pages 1–9 use 9 digits. The remaining 180 digits are used by two-digit page numbers.

Full worked solution

Answer: 99

  1. Pages 1 to 9 use 9 digits, leaving 189 − 9 = 180 digits.
  2. Two-digit pages use 2 digits each: 180 ÷ 2 = 90 pages, namely 10 to 99.
  3. So the book has 99 pages.

Why this works: Working backwards from the total, one group of page numbers at a time, finds the last page.

Where it leads: Some totals are impossible: no book needs exactly 190 digits. Can you see why? (After page 99, every page adds 3.)

Strategy: Working backwards, Organised cases

Problem J150

LogicShort answer

Pat is standing in a queue. Pat is 7th from the front and 12th from the back. How many people are in the queue?

Hint

Count the people in front of Pat and behind Pat.

Second hint

6 people are in front and 11 behind.

Full worked solution

Answer: 18

  1. 7th from the front means 6 people are in front of Pat.
  2. 12th from the back means 11 people are behind Pat.
  3. Total: 6 + 1 + 11 = 18. (Not 7 + 12 = 19, which counts Pat twice.)

Why this works: Adding the two positions counts Pat twice; counting the people on each side avoids the trap.

Where it leads: This ‘off by one’ error, also called the fence-post error, is one of the most common bugs in computer programs.

Strategy: Count the opposite

Problem J151

LogicMultiple choice

Five friends meet. Is it possible for each of them to shake hands with exactly 3 of the others (each pair shaking at most once)?

Hint

Add up the number of handshakes each person makes.

Second hint

5 × 3 = 15. How many times is each handshake counted in that sum?

Full worked solution

Answer: C, No, it is impossible

  1. If each of 5 people shakes 3 hands, adding up everyone’s count gives 5 × 3 = 15.
  2. Each handshake involves two people, so it is counted twice: the sum must be even.
  3. 15 is odd, so this is impossible (C).

Why this works: Double counting shows the total of everyone’s handshakes is always even. A parity check rules the arrangement out without trying any.

Where it leads: This is the handshake lemma of graph theory: the number of people who shake an odd number of hands is always even.

Strategy: Parity and remainders, Proof techniques

Problem J152

LogicShort answer

I am thinking of a whole number from 1 to 30. Of these four statements, exactly three are true: (1) It is a multiple of 4. (2) It is a multiple of 6. (3) It is greater than 20. (4) It is a perfect square. What is my number?

Hint

Which statement is the false one? Try each in turn.

Second hint

If (4) is false, the number is a multiple of 12 greater than 20.

Full worked solution

Answer: 24

  1. Exactly one statement is false. Test each possibility.
  2. (4) false: a multiple of 4 and of 6 (so of 12), greater than 20, at most 30: 24, which is indeed not a square. ✓
  3. (1) false: a square multiple of 6 above 20: the first is 36, too big. (2) false: a square multiple of 4 above 20, not a multiple of 6: none up to 30 (only 16 and 4 are square multiples of 4, both too small). (3) false: a square multiple of 12 up to 20: none.
  4. So the number is 24.

Why this works: ‘Exactly one is false’ gives four cases; checking each and finding only one survivor proves the answer is unique.

Where it leads: Puzzles where statements refer to how many statements are true can be self-referential and even paradoxical; logicians use them to study truth itself.

Strategy: Organised cases

Problem J153

LogicShort answer

Five coins lie heads up on a table. A move consists of turning over exactly two of the coins (any two). What is the smallest number of coins that can be showing heads after some moves?

Hint

How can one move change the number of heads?

Second hint

Turning two coins changes the number of heads by −2, 0 or +2. What stays the same?

Full worked solution

Answer: 1

  1. A move turns two coins: two heads become tails (−2), two tails become heads (+2), or one of each swaps (0).
  2. So the number of heads always changes by an even amount: it stays odd (it starts at 5).
  3. So 0 heads is impossible. 1 head is reachable: turn coins 1 and 2, then coins 3 and 4.
  4. The smallest possible number is 1.

Why this works: An invariant (here, the parity of the number of heads) proves something can never happen, without trying every sequence of moves.

Where it leads: Invariants prove that the ‘15 puzzle’ with two tiles swapped cannot be solved, and that some chessboards with squares removed cannot be tiled by dominoes.

Strategy: Invariants, Parity and remainders

Problem J154

LogicShort answer

In a knockout tennis tournament with 37 players, every match is between two players and the loser leaves the tournament. Some players get byes (skip a round) when the numbers are odd. How many matches are needed to find the champion?

Hint

Do not try to draw the rounds. How many players must lose?

Second hint

Every match knocks out exactly one player.

Full worked solution

Answer: 36

  1. At the end, one champion remains, so 36 players must be knocked out.
  2. Each match knocks out exactly one player, and nobody is knocked out any other way.
  3. So exactly 36 matches are played, however the byes are arranged.

Why this works: Counting losers instead of rounds turns a messy bracket into a one-line argument.

Where it leads: Looking for a quantity that changes by exactly one with each step is a powerful counting idea: it also shows a bar of chocolate with n squares needs n − 1 snaps to break into squares.

Strategy: Invariants

Problem J155

LogicShort answer

A chess knight moves two squares in one direction and then one square at right angles. A knight starts in a corner of a 3 by 3 board. How many of the 9 squares can it ever visit, including the square it starts on?

Hint

Can a knight ever reach the centre square of a 3 by 3 board?

Second hint

From the centre, a knight move would leave the board.

Full worked solution

Answer: 8

  1. From the centre square, every knight move goes two squares in some direction, off the board, so the centre is never reached (and never left).
  2. From a corner the knight can reach an edge square, then another corner, and so on around the outside: corner → edge → corner → … visiting all 8 outer squares.
  3. So it can visit 8 squares.

Why this works: Checking the moves from the centre shows it is cut off; the other squares form a single loop of knight moves.

Where it leads: The knight’s graph on a 3 × 3 board is an 8-cycle plus an isolated point. On larger boards, a knight’s tour visiting every square once exists for 5 × 5 and up.

Strategy: Organised cases, Invariants

Problem J156

LogicShort answer

A digital clock shows hours and minutes from 00:00 to 23:59. How many times in a day does it show four identical digits?

Hint

If all digits are the same digit d, the time is dd:dd. Which d give a real time?

Second hint

The hours must be at most 23, and the minutes at most 59.

Full worked solution

Answer: 3

  1. All four digits equal d means the time dd:dd.
  2. Hours dd ≤ 23 allows d = 0, 1, 2. Minutes dd ≤ 59 is then fine.
  3. So 00:00, 11:11 and 22:22: 3 times.

Why this works: The tightest restriction (hours at most 23) decides everything, so check it first.

Where it leads: How many palindromic times (like 12:21) are there in a day? The minutes are fixed by the hours, so count the hours whose reverse is a valid minute.

Strategy: Extremal principle

Problem J157

LogicShort answer

The numbers 1, 2, 3, 4, 5 and 6 are placed at the three corners and the three midpoints of the sides of a triangle, one number in each place. The three numbers along each side add up to the same total S. What is the largest possible value of S?

Hint

Add up the three side totals. Which numbers are counted twice?

Second hint

3S = 21 + (sum of the corner numbers).

Full worked solution

Answer: 12

  1. Adding the three sides counts each corner twice and each midpoint once: 3S = (1 + 2 + … + 6) + (corners) = 21 + corners.
  2. The corners add up to at most 4 + 5 + 6 = 15, so 3S ≤ 36 and S ≤ 12.
  3. S = 12 works: corners 4, 5, 6 with 3 between 4 and 5, 1 between 5 and 6, 2 between 6 and 4.
  4. The largest S is 12.

Why this works: Adding all the lines at once and seeing which numbers are double counted gives a bound; an example then shows the bound is achieved.

Where it leads: The same argument gives the smallest S (corners 1, 2, 3: S = 9). Bound plus construction is the standard shape of an extremal proof.

Strategy: Extremal principle, Invariants

Problem J158

LogicMultiple choice

A month with 30 days has five Fridays and five Saturdays. On what day of the week was the 1st of the month?

Hint

30 days is 4 weeks and 2 days. Which weekdays appear five times?

Second hint

Only the weekdays of the 1st and 2nd appear five times.

Full worked solution

Answer: B, Friday

  1. 30 = 4 × 7 + 2, so every weekday appears 4 times, except the weekdays of the 1st and 2nd (and the 29th and 30th), which appear 5 times.
  2. Friday and Saturday appear five times, so the 1st and 2nd are a Friday and a Saturday.
  3. The 2nd is the day after the 1st, so the 1st is a Friday (B).

Why this works: Splitting the month into full weeks plus a remainder shows exactly which weekdays get the extra appearances.

Where it leads: In a 31-day month, three weekdays appear five times. Can a month ever have five Mondays and five Fridays?

Strategy: Parity and remainders, Organised cases

Problem J159

LogicShort answer

Two players take turns to remove 1 or 2 counters from a pile of 10 counters. The player who takes the last counter wins. The first player can make sure of winning. How many counters should she take on her first turn?

Hint

Which pile sizes are losing for the player about to move? Start from small piles.

Second hint

A pile of 3 is losing for the player to move: whatever they take, the other player takes the rest. What about 6 and 9?

Full worked solution

Answer: 1

  1. With 1 or 2 counters, the player to move takes them all and wins. With 3, whatever they take (1 or 2), the opponent takes the rest: 3 is a losing position.
  2. Likewise 6 and 9 are losing: whatever the mover takes, the opponent takes enough to make the total taken 3, reaching 3 less.
  3. From 10 the first player takes 1, leaving 9, a losing position for her opponent. She then always makes each round total 3.

Why this works: Working backwards from the end of the game finds the losing positions (multiples of 3); the winning strategy is to always leave one.

Where it leads: If players may take 1 to k counters, the losing positions are the multiples of k + 1. Games like Nim generalise this with binary arithmetic.

Strategy: Working backwards, Invariants

Problem J160

LogicMultiple choice

On an island, knights always tell the truth and knaves always lie. A says: ‘B is a knave.’ B says: ‘A and C are both knaves.’ C says: ‘I am a knave or A is a knight.’ How many of A, B and C are knights?

Hint

Start with C. Could C be a knave?

Second hint

If C were a knave, ‘I am a knave or …’ would be true. So C is a knight, and then A must be a knight.

Full worked solution

Answer: C, 2

  1. If C were a knave, the statement ‘I am a knave or A is a knight’ would be true, which a knave cannot say. So C is a knight.
  2. Then C’s statement is true; ‘I am a knave’ is false, so ‘A is a knight’ must be true.
  3. A is a knight, so A’s statement is true: B is a knave. Check: B says ‘A and C are both knaves’, which is false. ✓
  4. Knights: A and C, so 2 (C).

Why this works: A statement that includes ‘I am a knave’ can never be said by a knave if the whole statement would then be true. That fixes C immediately.

Where it leads: ‘I am a knave’ on its own can be said by nobody: a knight would be lying and a knave telling the truth. This is a version of the liar paradox.

Strategy: Proof techniques, Organised cases

Problem J161

LogicShort answer

A frog starts at 0 on a number line. Each jump moves it 5 units to the right or 3 units to the left. What is the smallest number of jumps it needs to land exactly on 1?

Hint

If it makes a jumps right and b jumps left, where does it end up?

Second hint

You need 5a − 3b = 1 with a + b as small as possible.

Full worked solution

Answer: 5

  1. With a jumps right and b left, the frog ends at 5a − 3b, whatever the order.
  2. We need 5a − 3b = 1. Try small a: a = 1 gives 3b = 4 (no); a = 2 gives 3b = 9, b = 3.
  3. So 2 + 3 = 5 jumps work, for example +5, −3, +5, −3, −3.
  4. Any solution has 5a ≡ 1 (mod 3), so a = 2, 5, 8, …, and a = 2 gives the fewest jumps: 5.

Why this works: The order of the jumps does not matter for where the frog ends up, so the problem becomes a whole-number equation.

Where it leads: Because 5 and 3 have no common factor, the frog can reach every whole number. If the jumps were 6 and 4 it could only reach even numbers: this is Bézout’s identity.

Strategy: Working backwards, Parity and remainders

Problem J162

LogicShort answer

A calculator shows 1. It has only two working keys: ‘+3’ and ‘×2’. What is the smallest number of key presses needed to make it show 50?

Hint

Work backwards from 50.

Second hint

Before 50 the display showed 25 (then ×2) or 47 (then +3).

Full worked solution

Answer: 6

  1. Work backwards: undoing ×2 halves an even number; undoing +3 subtracts 3.
  2. 50 ← 25 ← 22 ← 11 ← 8 ← 4 ← 1. Forwards: 1 +3 = 4, ×2 = 8, +3 = 11, ×2 = 22, +3 = 25, ×2 = 50: 6 presses.
  3. Fewer is impossible: with 5 presses there are only 25 = 32 key sequences, and checking them (or the shortest routes to each number) shows none reaches 50.
  4. Answer: 6.

Why this works: Working backwards from the target narrows the choices: 50 has only two possible previous values, and 25 (odd) has only one.

Where it leads: Finding shortest routes through all reachable numbers is breadth-first search, a basic algorithm behind satnavs and puzzle solvers.

Strategy: Working backwards

Problem J163

LogicMultiple choice

Ben, Cara and Dan are a doctor, a teacher and a pilot, in some order. The pilot is the youngest of the three. Ben is the youngest of the three. Cara is older than the teacher. Who is the teacher?

Hint

Who is the pilot?

Second hint

Ben is the youngest and the pilot is the youngest, so Ben is the pilot. Can Cara be the teacher?

Full worked solution

Answer: C, Dan

  1. The pilot and Ben are both ‘the youngest’, so Ben is the pilot.
  2. Cara is older than the teacher, so Cara is not the teacher (no one is older than themselves).
  3. The teacher is therefore Dan (C), and Cara is the doctor.

Why this works: Two descriptions of the same person (‘the youngest’) must name the same person; and a comparison with someone rules out being that someone.

Where it leads: Reasoning with clues like these is what a computer does in ‘logic programming’ languages such as Prolog.

Strategy: Organised cases

Problem J164

LogicShort answer

A newspaper is made of large sheets folded in half and stacked, so that each sheet carries four pages. Pages are numbered from 1. One sheet carries pages 5 and 28 (and two others). How many pages does the newspaper have?

Hint

On the outer sheet, page 1 is paired with the last page. How do pairs on the same side of a sheet add up?

Second hint

Pages opposite each other on one side of a sheet always add to (total pages) + 1.

Full worked solution

Answer: 32

  1. The outer sheet carries pages 1 and N (the last page) side by side, then 2 and N − 1 on the back. Each sheet pairs a page p with N + 1 − p.
  2. Page 5 is paired with page 28, so 5 + 28 = N + 1.
  3. N = 32. (That sheet carries pages 5, 6, 27 and 28.)

Why this works: Every pair of facing pages on a sheet has the same sum, N + 1: an invariant that pins down N from one pair.

Where it leads: Printers call this imposition. The same pairing idea is Gauss’s trick for adding 1 to n.

Strategy: Invariants, Symmetry

Problem J165

LogicShort answer

‘In three years’ time I will be exactly twice as old as I was three years ago,’ says Ella. How old is Ella now?

Hint

Let her age now be a.

Second hint

a + 3 = 2(a − 3).

Full worked solution

Answer: 9

  1. Let Ella be a years old now.
  2. a + 3 = 2(a − 3) = 2a − 6.
  3. So a = 9. Check: in three years 12, three years ago 6, and 12 = 2 × 6. ✓

Why this works: Writing every age relative to ‘now’ turns the riddle into a one-line equation.

Where it leads: Try ‘in n years I will be k times as old as I was n years ago’: a = n(k + 1)/(k − 1). When is that a whole number?

Strategy: Working backwards

Keep going

More Junior problems: Number theory · Combinatorics · Geometry · Algebra · Probability

Logic at other levels: Intermediate (ages 13 to 16) · Senior (ages 16 to 18) · Olympiad-style (ages 15 to 18)

Problem-solving strategies · Where next · Extension & competition maths