Maths Olympiad Prep

Library / /35 of 46

, 2022

Combinatorics Difficulty 6.8 National Olympiad Prove it Japan

Alex and Betty play a game with a row of consecutive 20222022 cells. At the start of the game, the name of Alex is written in the 11st, 33rd, ..., 20212021st cells from the left and the name of Betty is written in the 22nd, 44th, ..., 20222022nd cells from the left. Starting from Alex, two players do the following operation in turn.
Choose two cells with his or her own name which are not adjacent such that all cells between the two have the opponent's name. Then replace opponent's names with his or her own names for all cells between the chosen two.
The game ends when one player is not able to do the operation. Determine the largest positive integer mm satisfying the following condition.
No matter how Betty does the operations, Alex can play such that there are mm or more cells with Alex's name at the end of the game.

Solution

At the start of the game, there are 20212021 pairs of two adjacent cells with different names and the number of such pairs is reduced by two per one operation. If there are three or more pairs of two adjacent cells with different names then a player can do the operation hence the number of such pairs is one at the end of the game. Therefore the total number of operations done by two players is 10101010.

When Alex does the operation, there are three or more pairs of two adjacent cells with different names. Let (X,Y)(X, Y) be the leftmost one among all such pairs and let (Z,W)(Z, W) be the second one from the left. Assume XX lies to the left of YY and ZZ lies to the left of WW then XX and WW have the name of Alex and all cells between XX and WW have the name of Betty. Therefore by doing the operation to XX and WW, Alex can increase the number of consecutive cells with Alex's name beginning from the leftmost cell by two. When there are consecutive cells with Alex's name beginning from the leftmost cell, they are not replaced by Betty's operation hence the number of such cells is not reduced by Betty's operation. Alex does the operation 505505 times thus m=1+2505=1011m = 1 + 2 \cdot 505 = 1011 satisfies the condition. On the other hand, Betty can similarly make 10111011 or more consecutive cells with Betty's name beginning from the rightmost cell hence we have m20221011=1011m \le 2022 - 1011 = 1011. Therefore the answer is 10111011.

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.