It is known that among several banknotes of pairwise distinct face values (which are positive integers) there are exactly $N{}$ fakes. In a single test, a detector determines the sum of the face values of all real banknotes in an arbitrary set we have selected. Prove that by using the detector $N{}$ times, all fake banknotes can be identified, if a) $N=2$ and b) $N=3$. Proposed by S. Tokarev
Problem
Source: 44th International Tournament of Towns, Junior A-Level P7 & Senior A-Level P6, Fall 2022 & Kvant Magazine No. 11-12 2022
Tags: combinatorics, Tournament of Towns, Kvant
16.02.2023 18:31
The detector equivalently tells us the sum of face values of all fake banknotes. For $N=2$, first select every banknote, which tells us that the sum of the two fake banknotes is $S$. Then consider every pair of banknotes whose values sum to $S$, say $(x_1,y_1),\ldots,(x_k,y_k)$. Clearly these pairs are pairwise disjoint, else two banknotes have the same value. For the second use of the detector, select $x_1,\ldots,x_k$, whence we learn which $x_i$ banknote is fake, and thus which $y_i$ banknote is fake as well.
24.02.2023 00:36
Adding to the post above for part (b).