Browse · MathNet
PrintKanada 2015
Canada 2015 counting and probability
Problem
On a 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 , what is the largest positive integer such that there must be a row or column that the turtle has entered at least distinct times?

Solution
We shall prove that the answer is . 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 times. Let . First note that each time the turtle moves, she enters either a row or a column. Let denote the number of times the turtle enters row , and let be similarly defined for column . Since the turtle moves times, Now note that each time the turtle enters column , the next column she enters must be column . Therefore is equal to the number of times the turtle enters column from column . Furthermore, the turtle must enter column from column at least once, which implies that . Therefore since the terms and are not all equal, one must be strictly greater than and therefore at least .
Now we construct an example to show that it is possible that no row or column is entered more than times. Partition the square grid into four quadrants , , , and , containing the upper left, upper right, lower left, and lower right corners, respectively. The turtle begins at the top right corner square of , moves one square down, and then moves left through the whole second row of . She then moves one square down and moves right through the whole third row of . She continues in this pattern, moving through each remaining row of in succession and moving one square down when each row is completed. Since is odd, the turtle ends at the bottom right corner of . She then moves one square down into and through each column of in turn, moving one square to the left when each column is completed. She ends at the lower left corner of and moves left into and through the rows of , moving one square up when each row is completed, ending in the upper left corner of . She then enters and moves through the columns of , moving one square right when each column is completed. This takes her to the upper right corner of , whereupon she enters and moves right through the top row of , which returns her to her starting point. Each row passing through and is entered at most times in and once in , and thus at most times in total. Similarly, each row and column in the grid is entered at most times by this path. (See figure below.)
Problem 3: the case
First we shall prove that some row or column must be entered at least times. Let . First note that each time the turtle moves, she enters either a row or a column. Let denote the number of times the turtle enters row , and let be similarly defined for column . Since the turtle moves times, Now note that each time the turtle enters column , the next column she enters must be column . Therefore is equal to the number of times the turtle enters column from column . Furthermore, the turtle must enter column from column at least once, which implies that . Therefore since the terms and are not all equal, one must be strictly greater than and therefore at least .
Now we construct an example to show that it is possible that no row or column is entered more than times. Partition the square grid into four quadrants , , , and , containing the upper left, upper right, lower left, and lower right corners, respectively. The turtle begins at the top right corner square of , moves one square down, and then moves left through the whole second row of . She then moves one square down and moves right through the whole third row of . She continues in this pattern, moving through each remaining row of in succession and moving one square down when each row is completed. Since is odd, the turtle ends at the bottom right corner of . She then moves one square down into and through each column of in turn, moving one square to the left when each column is completed. She ends at the lower left corner of and moves left into and through the rows of , moving one square up when each row is completed, ending in the upper left corner of . She then enters and moves through the columns of , moving one square right when each column is completed. This takes her to the upper right corner of , whereupon she enters and moves right through the top row of , which returns her to her starting point. Each row passing through and is entered at most times in and once in , and thus at most times in total. Similarly, each row and column in the grid is entered at most times by this path. (See figure below.)
Problem 3: the case
Final answer
2n + 2
Techniques
Counting two waysPigeonhole principleColoring schemes, extremal arguments