BMO2 · 2024/25 · 2025-01-22 · Question 3
Problem outline
Start with an array of alternating black and white squares, with opposite colours across every shared edge. A move interchanges any two entire rows or any two entire columns. For each colouring obtainable by such moves, consider the minimum number of further moves that restore the initial colouring in its original positions. Find the maximum of these minima as a function of .
Show answer and methods 1 methods
Answer
The maximum is for odd , and for even .
Method 1 Track the original parity of each row and column
Label each row and each column by the parity of its original index. A square has its original colour exactly when its row and column labels are either both correct or both incorrect at their present positions. Thus a restored board requires every label to be correct, or every label to be reversed. Indeed, fixing just one column forces the status of every row, and a single row then forces the status of every column.
Write . Let be the number of even-labelled rows in odd positions, and define in the same way for columns. There are also odd-labelled rows in even positions. One swap fixes at most one such misplaced pair, and pairing them fixes every row in exactly swaps. The columns require exactly more, so restoring all labels costs , where .
If , the numbers of even and odd labels differ. Reversal everywhere is impossible, so the required minimum is . Swap each even row with a different odd row and likewise for columns to realise . This gives , also covering .
If , complete reversal is possible. To reach that target the corresponding costs are and , so the optimum is . Reverse the labels of all rows using disjoint odd-even swaps and leave the columns alone. Then , and both restoration choices cost .
Source and attribution
The outline and worked methods on this page were prepared for DR.WANG Mathematics.
Original question (external)