Maths Olympiad Prep

Track / Stage 5 / 224 of 400 #1304 of 2444

Problem 1304

AIME late
Combinatorics Difficulty 5.5 Prove it Berkeley Math Circle: Monthly Contest 4 · United States

A computer screen shows a 98×9898 \times 98 chessboard, colored in the usual way. One can select with a mouse any rectangle with sides on the lines of the chessboard and click the mouse button: as a result, the colors in the selected rectangle switch (black becomes white and white becomes black). Determine the minimum number of mouse-clicks needed to make the chessboard all one color.

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Next problem →

Official solution

Solution:

The minimum number of clicks needed is 9898. One way to do this is to click all the even numbered rows one by one (4949 clicks), then all the even numbered columns one by one (another 4949 clicks).

To show that this is minimal, note that there are 4×974 \times 97 pairs of adjacent squares along the border, and that any such pair is mismatched. Each click can fix at most 44 adjacent pairs along the border, so it can reduce the number of mismatched pairs by at most 44, and thus at least 9797 clicks are necessary. However, since the corners are not all the same color, some of the clicks also need to deal with corner squares and thus can only reduce the number of mismatched border pairs by 22. Thus, we need at least 9898 clicks total, so this is indeed the minimum.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.