MathDB
2022 PUMaC Individual Finals A2 / B3

Source:

September 9, 2023
combinatorics

Problem Statement

Anna and Bob play the following game. In the beginning, Bob writes down the numbers 1,2,...,20221, 2, ... , 2022 on a piece of paper, such that half of the numbers are on the left and half on the right. Furthermore, we assume that the 10111011 numbers on both sides are written in some order. After Bob does this, Anna has the opportunity to swap the positions of the two numbers lying on different sides of the paper if they have different parity. Anna wins if, after finitely many moves, all odd numbers end up on the left, in increasing order, and all even ones end up on the right, in increasing order. Can Bob write down a arrangement of numbers for which Anna cannot win? For example, Bob could write down numbers in the following way: 4,2,5,7,9,...,2021,,3,1,6,8,10,...,20224, 2, 5, 7, 9, ... , 2021\,\,\,\,\,\,\,\,\,\,,\, \,\,\,\,\,\,\,\,\,\,,\, 3, 1, 6, 8, 10, ... , 2022 Then Anna could swap the numbers 1,41, 4 and then swap 2,32, 3 to win. However, if Anna swapped the pairs 3,43, 4 and 1,21, 2, the resulting numbers on the left and on the right would not be in increasing order, and hence Anna would not win.