Maths Olympiad Prep

Library / /2 of 2

Combinatorics Difficulty 6.5 National Olympiad Prove it Spain

Let n1n \ge 1 be a positive integer. Consider a pile of 3n3^n coins, one of which is fake. Suppose that all coins are either white or black and that if the fake coin is white, it is lighter than the others, and if the fake is black, it is heavier than the others. Furthermore, assume that the number of white coins and the number of black coins differ by at most one. Under these conditions, prove that the fake coin can be identified and classified as heavy or light by at most nn weighings in a scale.

Solution

For each n1n \ge 1, let P(n)P(n) be the statement to be proven. We will argue by induction. Indeed,

* Base step: For n=1n=1, consider 31=33^1=3 coins, and without loss of generality, suppose that two are black and one is white. Put a black on each pan and set the white aside. If the scale balances, then white coin is counterfeit, and since it is white, is lighter than the other coins. If the scales tips, say the left side down, then the black on the left is heavy and fake. In any case, the counterfeit coin is identified from among three coins and classified as heavy or light, so P(1)P(1) holds.

* Next we consider the case when n=3n=3, assuming, for the moment, that P(2)P(2) has been shown. Consider 33=273^3=27 coins, with, say, 14 black, and 13 white. Partition these 27 coins into three groups, say G1=(4B,5W)G_1 = (4B, 5W), G2=(5B,4W)G_2 = (5B, 4W), and G3=(5B,4W)G_3 = (5B, 4W). Put G2G_2 on the left, weighed against G3G_3 on the right. If the scale balances, the counterfeit coin is in group G1G_1 and so P(2)P(2) applies to a set of 9 coins, 4 black and 5 white. If the left pan goes down, either one of the 5 black from G2G_2 is heavy, or one of the 4 white from G3G_3 is light. The induction hypothesis P(2)P(2) now applies to these 32=93^2 = 9 coins. Similarly, if the scale tips to the right, the counterfeit is among the 4 white in G2G_2 or the 5 black in G3G_3, and again P(2)P(2) applies.

* Inductive step: Fix k1k \ge 1 and assume that P(k)P(k) is true. Consider a collection of 3k+13^{k+1} coins, one of which is counterfeit. Assume that there is one more black than white (the same argument works if there is one more white than black), so suppose that 3k+1+12\frac{3^{k+1}+1}{2} are black and 3k+112\frac{3^{k+1}-1}{2} are white. Partition the coins into three groups, G1,G2G_1, G_2, and G3G_3, each with 3k3^k coins, and each with a near balance of black and white: In G1G_1, put 3k12\frac{3^k-1}{2} black and 3k+12\frac{3^k+1}{2} white coins. In both G2G_2 and G3G_3, put 3k+12\frac{3^k+1}{2} black and 3k12\frac{3^k-1}{2} white coins. Putting G1G_1 aside, weigh G2G_2 on the left against G3G_3 on the right. If the scales balance, the counterfeit coin is in G1G_1, and P(k)P(k) applies to G1G_1, finding the fake coin in an additional kk weighings, k+1k+1 in all, and so P(k+1)P(k+1) is true in this case. If the scales go down on the left, either one of the 3k+12\frac{3^k+1}{2} black coins from G2G_2 is heavy, or one of the 3k12\frac{3^k-1}{2} white coins from G3G_3 is light and these
3k+12+3k12=3k \frac{3^k + 1}{2} + \frac{3^k - 1}{2} = 3^k
coins satisfy the hypothesis for P(k)P(k), and so the coin is found in k+1k+1 weighings. The analogous argument works when the right pan lowers.

Finally, by mathematical induction, for each n1n \ge 1, we conclude that P(n)P(n) holds.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.