MathTrail

LogicGrades 3–6

Knights and liars

On an island live knights, who always tell the truth, and liars, who always lie. From what they say, you have to work out who is who. For many children this is their first meeting with real logical reasoning: make an assumption, follow where it leads, and notice a contradiction.

The main move
“Suppose this one is a knight…”
What it teaches
To reason step by step, and to check yourself
       A                B
  “B is a liar”    “A is a liar”
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The island's rules

Who can say what

Start with two sentences. They show at once how these problems work.

SentenceKnightLiarWhat it means
“I am a knight”✓ Can say it: it is true✓ Can say it: it is a lie, as a liar's words should beIt tells you nothing: anyone may say it.
“I am a liar”✕ Cannot: it would be a lie✕ Cannot: it would be the truthAn impossible sentence: nobody can say it.

How to solve: “suppose that…”

Almost every such problem is solved the same way: pick one islander, suppose what they are, and see what follows. The examples below go from the simplest to an olympiad's.

  1. Suppose
  2. Work out what follows
  3. Find a contradiction, or check the answer

Example 1 · Grades 3–4

Two on the road

Two islanders, A and B, meet on a road. A says: “I am a liar, and B is a knight.” Who is who?

  1. Suppose A is a knight. Then the words are true, and A is a liar. But we supposed A is a knight: a contradiction, so this case is impossible.
  2. Suppose A is a liar. Then the words are false. Their first half, “I am a liar”, is true, so the second half is false: B is not a knight but a liar. Everything fits.

Answer A and B are both liars.

Example 2 · Grades 3–4

A chain of accusations

Three islanders, A, B and C, say this. A: “B is a liar.” B: “C is a knight.” C: “A and B are both liars.” Who is a knight, and who is a liar?

  1. Where to start? With the one who says the most, since more follows from their words. That is C.
  2. Suppose C is a knight. Then A and B are both liars. But B said “C is a knight”, which would be true, and a liar never says anything true. A contradiction.
  3. So C is a liar. Then B's “C is a knight” is false, and B is a liar too.
  4. A said “B is a liar”, and that is true. So A is a knight.

Answer A is a knight; B and C are liars.

Example 3 · Grades 5–6

The round table

Ten islanders sit at a round table. Each of them says: “My neighbour on the right is a liar.” How many knights are at the table?

  1. If an islander is a knight, the words are true: the neighbour on the right is a liar.
  2. If an islander is a liar, the words are false: the neighbour on the right is a knight.
  3. So knights and liars take turns round the table: K, L, K, L… Exactly half of the ten are knights: 5 knights.
     K   L
  L         K
 K           L
  L         K
     K   L

Answer 5 knights.

Where children go wrong

MathTrail explains every wrong answer by the trap it fell into. These are the commonest in this topic, with something you can say to your child.

How to help at home

  1. Play the island

    You are a liar, and the child asks you questions. Soon the child notices that to “Are you a liar?” you always answer “No”.

  2. Ask instead of telling

    Instead of an answer, a question: “And if they are a knight, what then?” That is the topic's main move.

  3. Write K and L in pencil

    Over each name, an assumption. A contradiction? Rub it out and try the other one.

Learn first

Ask for a task on this topic

Give me a task about knights and liars

Add to ClaudeAll topics