PaulButler @ Sat Feb 23, 2008 2:12 pm wrote:
Suppose you have 8 coins and a balance. This time you know there is exactly one fake, and that it has a unique weight, but this time you don't know if it is heavier or lighter. The others are all the same weight. Using the balance three times, how do you find the fake?
We have 8 coins with one fake.
Place two sets of two coins in the balance (leaving 4).
If equal weight, then these coins are non-fake; otherwise, these four coins contain the fake.
We now have 4 non-fake coins and 4 coins with one fake.
Place 2 non-fake coins and 2 of the other coins in the balance (leaving 2 of the other coins).
If equal weight, then the 2 other coins in the balance are also non-fake; otherwise, those two coins contain the fake.
We now have 6 non-fake coins and 2 coins with one fake.
Place 1 non-fake coin and 1 of the other coins in the balance (leaving 1 other coin).
If equal weight, then the other coin in the balance is also non-fake; otherwise, that coin is the fake.
We now have 7 non-fake coins and the fake coin.