Maths Olympiad Prep

Library / /2 of 36

, 2023

Algebra Difficulty 7.6 National olympiad, round 2 Prove it Baltic Way

Let n>1n > 1 be an integer and let an 2×n2 \times n grid be given, where the cells are labelled as (x,y)(x, y) with 1x21 \le x \le 2 and 1yn1 \le y \le n. A grasshopper lives on the grid and occasionally jumps from one cell to another. The *length* of a jump from a cell (x1,y1)(x_1, y_1) to (x2,y2)(x_2, y_2) is defined as x1x2+y1y2|x_1 - x_2| + |y_1 - y_2|. Determine the largest possible sum of lengths of jumps the grasshopper can make when it starts from one cell and never jumps to a cell it has visited before.

Solution

Answer: The solution is n2+2n3n^2 + 2n - 3.

Combining the x-bound and the y-bound, we get in both cases the upper bound n2+2n2n^2 + 2n - 2. This can still be improved by observing that it is not possible to satisfy both bounds with equality. For n=2k+1n = 2k + 1, in order to get n21n^2 - 1 units in y-direction, the two end points have to be (0,k+1)(0, k+1) and (1,k+1)(1, k+1) (so that they are never in the smaller part). Without loss of generality, the first step goes from (0,k+1)(0, k+1) into the set {(1,y):yk+2}\{(1, y) : y \ge k+2\}. Then, if we always want to change the x-coordinate and also always move between yk+2y \ge k+2 and yk+1y \le k+1 (which we have to do in order to make the y-bound tight), we can only alternate between {(1,y):yk+2}\{(1, y) : y \ge k+2\} and {(0,y):yk}\{(0, y) : y \le k\}. Similarly, for n=2kn = 2k, without loss of generality, the first step goes from {(0,y):yk}\{(0, y) : y \le k\} to {(0,y):yk+1}\{(0, y) : y \ge k+1\}, and if we don't want to lose anything in x- or y-direction we can only alternate between these two sets.

2k+2y=1k(n2y)1+2y=k+2n(2yn1)=4k2+4k1=n22, 2k + 2 \sum_{y=1}^{k} (n - 2y) - 1 + 2 \sum_{y=k+2}^{n} (2y - n - 1) = 4k^2 + 4k - 1 = n^2 - 2,
and for n=2kn = 2k,
k+k+y=1k1[(n2y)+(n2y+1)]+y=k+2n[(2yn2)+(2yn1)]=4k22=n22. k + k + \sum_{y=1}^{k-1} [(n - 2y) + (n - 2y + 1)] + \sum_{y=k+2}^{n} [(2y - n - 2) + (2y - n - 1)] \\ = 4k^2 - 2 = n^2 - 2.

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.