II-C. Two squids are forced to participate in a game. Before it begins, they will be informed of all the rules, and can discuss their strategy freely. Then, they will be locked in separate rooms, and be given distinct positive integers no larger than as their IDs respectively. The two squids then take turns alternatively; on one's turn, the squid chooses one of the following:
1. announce a positive integer, which will be heard by the other squid;
2. declare which squid has the larger ID. If correct, they win and are released together; otherwise, they lose and are fired together.
Find the smallest positive integer so that, no matter what IDs the squids have been given, they can always win in a finite number of turns, and the sum of the numbers announced during the game is no larger than .
, 2023
Solution
The answer is , where 「」 denotes the ceiling function. In general, if the given IDs must not exceed , then the smallest .
Construction: Label the two squids and , with their given IDs being and respectively. When , the IDs can be represented as
where . For convenience, let denote the value of for the squid whose turn it is on turn , that is,
Similarly define as the ID of the squid whose turn it is on turn .
Let , and consider the following strategy: if on turn the squid cannot yet determine which ID is larger, have it compute
and have it announce . It is easy to see that the sum of the numbers announced up through turn is . Furthermore, since is strictly increasing, it must be that after finitely many turns ; we need only show that the squids will correctly determine which ID is larger before this situation occurs. To this end, let us define the sets
First, we prove by mathematical induction that: at the end of turn , either "the squids know " or "one of the squids can determine which ID is larger." The case is obvious. Suppose the claim holds for ; then on turn :
(a) since no determination was made on the previous turn, by the induction hypothesis the squids know ;
(b) since was announced on the previous turn, by the definition of , the squids know and .
At this point there are several cases:
- There exists such that ; then using (a) and (b) we may derive the following relation and determine which is larger:
- If not, and , then the squids can use (a) and (b) to derive the following relation and determine which is larger:
- If neither of the above holds, then for all , so we know .
* If for all , then based on and the uniqueness of the IDs, the squids can deduce the following relation and thereby determine which is larger:
* If not, then is nonempty, so the squids can successfully compute .
Lower bound: We need only show that when , it is impossible to guarantee a win while announcing numbers summing to less than .
Let us proceed by mathematical induction on . The case is obvious. Suppose the claim holds for all . Note that the first squid can only declare which is larger directly on the first turn when or . Aside from these two cases, for , suppose the first squid announces when ; then there must exist some such that , otherwise
which is a contradiction. This means that after the first turn ends, there are at least possible values of , and all of these could also be possible values of . Thus, starting from the second turn onward, the game can be viewed as one with at least possible ID values, but where the sum of the numbers announced must be less than (since has already been announced on the first turn); by the induction hypothesis, a win cannot be guaranteed in this case. This completes the proof.