Maths Olympiad Prep

Library / /14 of 17

, 2015

Combinatorics Difficulty 6.7 National olympiad Prove it Canada

On a (4n+2)×(4n+2)(4n + 2) \times (4n + 2) square grid, a turtle can move between squares sharing a side. The turtle begins in a corner square of the grid and enters each square exactly once, ending in the square where she started. In terms of nn, what is the largest positive integer kk such that there must be a row or column that the turtle has entered at least kk distinct times?

Solution

We shall prove that the answer is 2n+22n + 2. Number the rows in increasing order, from top to bottom, and number the columns from left to right. By symmetry, we may (and shall) assume that the turtle starts in the top right corner square.

First we shall prove that some row or column must be entered at least 2n+22n + 2 times. Let m=4n+2m = 4n + 2. First note that each time the turtle moves, she enters either a row or a column. Let rir_i denote the number of times the turtle enters row ii, and let cic_i be similarly defined for column ii. Since the turtle moves m2m^2 times,
r1+r2++rm+c1+c2++cm=m2. r_1 + r_2 + \dots + r_m + c_1 + c_2 + \dots + c_m = m^2.
Now note that each time the turtle enters column 11, the next column she enters must be column 22. Therefore c1c_1 is equal to the number of times the turtle enters column 22 from column 11. Furthermore, the turtle must enter column 22 from column 33 at least once, which implies that c2>c1c_2 > c_1. Therefore since the 2m2m terms rir_i and cic_i are not all equal, one must be strictly greater than m2/(2m)=2n+1m^2/(2m) = 2n + 1 and therefore at least 2n+22n + 2.

Now we construct an example to show that it is possible that no row or column is entered more than 2n+22n + 2 times. Partition the square grid into four (2n+1)×(2n+1)(2n+1) \times (2n+1) quadrants AA, BB, CC, and DD, containing the upper left, upper right, lower left, and lower right corners, respectively. The turtle begins at the top right corner square of BB, moves one square down, and then moves left through the whole second row of BB. She then moves one square down and moves right through the whole third row of BB. She continues in this pattern, moving through each remaining row of BB in succession and moving one square down when each row is completed. Since 2n+12n+1 is odd, the turtle ends at the bottom right corner of BB. She then moves one square down into DD and through each column of DD in turn, moving one square to the left when each column is completed. She ends at the lower left corner of DD and moves left into CC and through the rows of CC, moving one square up when each row is completed, ending in the upper left corner of CC. She then enters AA and moves through the columns of AA, moving one square right when each column is completed. This takes her to the upper right corner of AA, whereupon she enters BB and moves right through the top row of BB, which returns her to her starting point. Each row passing through AA and BB is entered at most 2n+12n+1 times in AA and once in BB, and thus at most 2n+22n+2 times in total. Similarly, each row and column in the grid is entered at most 2n+22n+2 times by this path. (See figure below.)

Figure 1

Problem 3: the case n=3n = 3

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.