1
$\begingroup$

You have 9 coins. One of the nine is counterfeit. The counterfeit coin can be distinguished by weight - it is heavier than the rest.

Using a balance scale only twice, find the counterfeit coin.

$\endgroup$
2
  • $\begingroup$ I think I've seen this puzzle here somewhere. $\endgroup$ Jan 15, 2018 at 12:27
  • 1
    $\begingroup$ Which is already a duplicate's duplicate btw. $\endgroup$ Jan 15, 2018 at 13:21

1 Answer 1

2
$\begingroup$

Ternary search.

Split into groups of 3. Call them first3group, second3group, third3group.

Now weigh first3group vs second3group. If first test shows equal weights, the heavy coin is in third3group. Split third3group and weigh 2. Where one is heavier, QED, otherwise, it is the non-weighed one, QED.

Else take the heavier group of 3 and do a similar exercise as described above when left with 3, 1 of which is heavier.

QED

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.