Twenty undistinguishable coins are arranged in a row. One of them weighs grams and the next coin to the right weighs grams. The remaining coins have weight grams each. Find the gram coin with weightings on a two-pan balance without weights.
Problem 1556
Official solution
On the first attempt compare two groups of coins each: and . Note that the grams coin and the grams coin cannot be on the same pan as their positions are consecutive, hence of different parity.
If there is equilibrium we claim that, moreover, neither nor is on the pans, i.e. they are at positions and . Indeed suppose that or is on one of the pans. Equilibrium is impossible with exactly one exceptional coin; the other one must be on a pan too. Moreover for equilibrium both of them must be on the same pan; however we remarked that this is not so. Thus and are at positions and , and since is the right neighbor of , we find that the grams coin is the last one. Note that the case of equilibrium needs no further attempts.
Let be lighter than . Then . Indeed if then has only grams (it cannot contain ). Hence is lighter only if . So is at even position . But then is at the previous odd position , i.e. it is in contrary to the assumption.
Similarly let be heavier than . Then . Otherwise has only grams coins and it is lighter only if . So is at an odd position ; note is not as is preceded by . But then is at the previous even position , i.e. , contrary to the assumption.
So in the case of non-equilibrium the first attempt finds a group of coin with of them having the same weight and the last one lighter. It is known how to find the lighter coin with attempts. Divide the coins into groups of and compare two groups. Regardless of the outcome this determines a group of coins containing the lighter one. It remains to compare two coins from . Regardless of the outcome the lighter coin will be identified.