Problem:
Let be a positive integer. On a board consisting of squares, exactly tokens are placed so that each row and each column contains one token. In a step, a token is moved horizontally or vertically to a neighbouring square. Several tokens may occupy the same square at the same time. The tokens are to be moved to occupy all the squares of one of the two diagonals.
Determine the smallest number such that for any initial situation, we can do it in at most steps.
Solution
Solution:
We shall prove that .
We define the distance from a given square to a given diagonal to be the minimal number of steps needed to get from the square to the diagonal. This equals the minimal number of horizontal steps needed to do that. It also equals the minimal number of vertical steps needed to do that.
Given a configuration of tokens, we define the distance from this configuration to a given diagonal to be the sum of distances of the tokens to that diagonal.
Choose the coordinate system so that the vertices of the board have coordinates . Place a token on each of the squares the coordinates of whose centres satisfy and . Now complete this configuration of tokens so that it has a rotational symmetry of about the origin. Then we have tokens, one in each row, one in each column. The distance from this configuration to either diagonal is . Therefore, .
Now consider any configuration satisfying the conditions of the problem. We prove that steps suffice even if we only allow horizontal moves. I.e., the smallest of the two distances from the given configuration to the diagonals is . It suffices to prove that the sum of the two distances from the given configuration to the diagonals is .
Observe that the sum of the two distances from the square with center to the two diagonals is . This number can take values . The squares where it takes a given value can be covered by two columns and two rows, so we can place at most four tokens there. Thus, the sum of the values for the tokens is .