Browse · MathNet
PrintBaltic Way 2023 Shortlist
Baltic Way 2023 algebra
Problem
Let be an integer and let an grid be given, where the cells are labelled as with and . A grasshopper lives on the grid and occasionally jumps from one cell to another. The length of a jump from a cell to is defined as . 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 .
Combining the x-bound and the y-bound, we get in both cases the upper bound . This can still be improved by observing that it is not possible to satisfy both bounds with equality. For , in order to get units in y-direction, the two end points have to be and (so that they are never in the smaller part). Without loss of generality, the first step goes from into the set . Then, if we always want to change the x-coordinate and also always move between and (which we have to do in order to make the y-bound tight), we can only alternate between and . Similarly, for , without loss of generality, the first step goes from to , and if we don't want to lose anything in x- or y-direction we can only alternate between these two sets.
and for ,
Combining the x-bound and the y-bound, we get in both cases the upper bound . This can still be improved by observing that it is not possible to satisfy both bounds with equality. For , in order to get units in y-direction, the two end points have to be and (so that they are never in the smaller part). Without loss of generality, the first step goes from into the set . Then, if we always want to change the x-coordinate and also always move between and (which we have to do in order to make the y-bound tight), we can only alternate between and . Similarly, for , without loss of generality, the first step goes from to , and if we don't want to lose anything in x- or y-direction we can only alternate between these two sets.
and for ,
Final answer
n^2 + 2n - 3
Techniques
Combinatorial optimizationColoring schemes, extremal arguments