Hugo plays a game: he places a chess piece on the top left square of a chessboard and makes 10 moves with it. On each of these 10 moves, he moves the piece either one square horizontally (left or right) or one square vertically (up or down). After the last move, he draws an on the square that the piece occupies. When Hugo plays this game over and over again, what is the largest possible number of squares that could eventually be marked with an X? Prove that your answer is correct.
Problem 1958
Official solution
Solution:
Index each square by its row number and column number, starting with . For example, represents the top left square and represents the square in the third row down and the sixth column over. When the piece moves down or to the right, the sum of the indices of its square increases by , and when the piece moves up or to the left, this sum decreases by . Since it starts on a square with sum of indices , after moves it must lie on a square with sum of indices at most . In addition, since each move changes the sum of indices from even to odd or from odd to even and the piece starts on a square with an even sum of indices, after an even number of moves the sum of indices must be even. Therefore, after moves, the piece lies on a square whose sum of indices is an even number .
It is possible to reach any one of the squares with sum of indices an even number at the end of moves, since the piece can get to the square with simply by moving squares down, then squares to the right. If , this uses up all moves; otherwise, the piece can waste the remaining moves (which is an even number of moves since is even) simply by moving the piece down a square and then up a square until moves are reached.
We have shown that the squares that could be marked with an are the squares of indices where is an even number . Since the squares with form a diagonal of length extending from the left side of the board to the top of the board, there are such squares.