KatInterview

Three Cat Owners and a Truth-or-Lie Rule: Find Bob's Count

Math & Bit ManipulationModel answer
EasyModel answerMath & Bit Manipulationlogic-puzzlecase-analysisdivisibility

Last updated

Three friends speak under a rule that ties honesty to who owns more cats. Use the statements, parity, divisibility and a sum bound to find Bob's cat count and the triple of counts.

Three Friends, Three Cat Counts

Alice, Bob and Charlie own a, b and c cats. Each is a positive integer, and all three are different.

Honesty rule

When a person X addresses a person Y:

  • If Y owns more cats than X, X is truthful and every claim in that statement is true.
  • If Y owns fewer cats than X, X lies and every claim in that statement is false.

Conversation

  1. Alice to Bob: "You own more cats than Charlie, and Charlie's count is even."
  2. Bob to Charlie: "You own exactly 40% more cats than I do, and the average of our three counts is a whole number."
  3. Charlie to Alice: "Together we own more than 20 cats."

Task

  1. Use the honesty rule to work out which orderings of a, b and c are possible.
  2. Turn each statement into an arithmetic condition (inequality, parity, divisibility).
  3. Find Bob's cat count and the triple (a, b, c) that the puzzle intends.
  4. State whether the conditions, read strictly, really single out one triple. If not, say which extra assumption would.

Hints

Hint 1

Every statement has two parts: a comparison that decides truthful or lying, and content that must then be all true or all false. Branch on the comparison first, starting with whether Alice is truthful.

Hint 2

If Alice lies, both of her claims are false. With distinct counts, this tells you who has the fewest cats and whether `c` is odd or even. Then Bob is truthful, and 40% more means `5c = 7b`, so `b` is a multiple of 5.

Hint 3

Write `b = 5k` and `c = 7k`. Use the integer-average condition to get a divisibility fact about `a`, then check Charlie's sum claim in both orderings of `a` and `c`. Also test the branch where Alice is truthful instead of assuming it fails.