2

So I have a coin-weighing puzzle under these situations:

  • There are 80 real coins and 1 fake coin (total of 81 coins).

  • The real coins are all the same weight, and the weight of the fake coin is different from the real coin.

  • The real and fake coins cannot be distinguished, other than weight.

  • A balance is used to identify the fake coin.

  • When using the balance, the same number of coins is placed on either plate. The result is either "the left plate is heavier," "the right plate is heavier," or "the two plates are the same weight."

According to prior research, this problem cannot be solved by using the balance 4 times or less. I tried to show this by using information theory as follows, but I feel like I am missing something here.

Label the coins 1,...,81, and let C be the number of the fake coin. Also, let W be a random variable defined so that W=1 when the fake coin is heavier than the real coin, and W=0 when lighter. At the initial state, C and W can be regarded as independent random variables following a uniform distribution.

Then, define random variable Rk so that Rk=0, Rk=1, Rk=2, when, the result after using the balance for the kth time is, respectively, "the left plate is heavier," "the right plate is heavier," or "the two plates are the same weight."

Then, Rk can be regarded as uniquely determined by R1,...,Rk, and the real values of C and W. (Do I have to add additional proof that this is true?)

Assume that the fake coin can be surely identified by four measurements using the balance, then this means that the value of C is determined when R1,...,R4 have been determined. Thus, using the entropy function and its chain rule,

H(C,W,R1,...,R4)=H(C)+H(R1|C)+H(R2|R1,C)+H(R3|R2,R1,C)+H(R4|R3,R2,R1,C)+H(W|R4,R3,R2,R1,C)

And, we also have

H(C,W,R1,...,R4)=H(W)+H(C|W)+H(R1|C,W)+H(R2|R1,C,W)+H(R3|R2,R1,C,W)+H(R4|R3,R2,R1,C,W)

Then we notice that H(C|W)=H(C), as C and W are independent variables. Also, H(R1|W,C)<H(R1|C),H(R2|R1,C,W)<H(R2|R1,C), and so on. Thus, from the two equations, we get H(W)<H(W|R1,...,R4,C)

But we know that H(W|R1,...,R4,C)<H(W), so there is a contradiction.

OK. So I somehow arrived at a contradiction, showing that the problem cannot be solved by using the balance for times. But then I realized that the same logic applies when using the balance for any number of times, so apparently there is something wrong...

What sort of logic am I missing? I would appreciate any help.

1
  • Oh boy...seems like I have made a stupid mistake in the final statement. – Kay Jan 4 at 6:26
2

Brian has pointed out your error correctly. However, your approach is almost there (this is basically a formalised version of wendy's argument):

I'll use R14 to denote the joint random variables (R1,R2,R3,R4). Notice that if (C,W) can be determined using R14 then H(C,W|R14)=0 (this is the key point that you did not use in your attempt). But then

H(C,W,R14)=H(C,W)+H(R14|C,W)=H(R14)+H(C,W|R14)=H(R14).

Since entropies are non-negative, this means that

H(C,W)H(R14)4log3,
where I've used the fact that R1,R2,R3,R4 are ternary, and the upper bound on entropy provided by log of the support size. But H(C,W)=H(C)+H(W)=4log3+log2>4log3 gives a contradiction.


Just for completeness, in this case 5 weighings suffice - divide the 81 coins into three groups of 27. Measure the first two groups, and then the second and the third groups. This tells you both if the anomalous coin is heavier or lighter, and which of the three groups it lies in. Divide this group into three groups of 9, and measure the first two - since you know the direction of the anomaly, this reduces the identity of the anomalous coin to 9 options. Doing this division into three groups two more times fixes the coin in a total of 5 measurements.

1
2

You have 162 possible outcomes. You can't do light and heavy in just four trinary weighs. The usual means is 12 in three weighs or 120 in five. This gives 24 or 240 outcomes.

1
2

The conclusion in this statement is wrong:

Then we notice that H(C|W)=H(C), as C and W are independent variables. Also, H(R1|W,C)<H(R1|C),H(R2|R1,C,W)<H(R2|R1,C), and so on. Thus, from the two equations, we get H(W)<H(W|R1,...,R4,C)

The conclusion would be H(W)>H(W|R1,,R4,C).


Your logic would be like saying "If a+b=c+d and b<c, then a<d" The inequality is backwards.

1
  • Thany you for pointing it out. Not sure why I never realized this... – Kay Jan 5 at 2:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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