Data set: Knights and knaves (Hard)
Knights and knaves
On an island every inhabitant is either a knight, who always tells the truth, or a knave, who always lies. Six inhabitants, A, B, C, D, E and F, make one statement each:
- A: “B is a knave.”
- B: “Exactly three of us six are knights.”
- C: “D is a knave, or A is a knight.”
- D: “E and F are of the same type.”
- E: “A and D are of the same type.”
- F: “C is a knave, or E is a knave.”
(“X or Y” is true when at least one of X, Y is true.)
How many of the six are knights?
Type in the answer (TITA): no options.
Show answer & solution
Correct answer: 3
Solution: Split on B. If B is a knave, A's 'B is a knave' is true, so A is a knight, and C's statement is true (A is a knight), so C is a knight. If E were a knight, D would match A (a knight), D's 'E and F same type' would make F a knight, and F's 'C or E is a knave' would be false — impossible. So E is a knave, D differs from A (a knave), D's lie means F differs from E (F a knight), and F's 'E is a knave' is true ✓. That gives exactly three knights (A, C, F), which makes B's claim true — but B was assumed a knave. So B is a knight. Then A is a knave. If E were a knave, D would differ from A (a knight), so E and F match (F a knave), and F's lie would need both C and E to be knights — but E is a knave. So E is a knight, D is a knave (same as A), D's lie means F differs from E (F a knave), and F's lie means C and E are both knights; C's 'D is a knave or A is a knight' is true ✓. Result: B, C and E are knights; A, D and F are knaves (three knights, so B told the truth ✓). A computer check of all 64 possible assignments confirms this is the only consistent one. So there are 3 knights.