Skip to main content
OlympiadHQ

Browse · MathNet

Print

Selection tests for the International Mathematical Olympiad 2013

Saudi Arabia 2013 counting and probability

Problem

Adel draws an grid of dots on the coordinate plane, at the points of integer coordinates where and . He proceeds to draw a closed path along of these dots, , such that and (where ) are 1 unit apart for each . Adel makes sure his path does not cross itself, that is, the dots are distinct. Find, with proof, the maximum possible value of in terms of and .

problem


problem
Solution
If is even, Adel can draw the following closed path which passes through all the dots of his grid. Therefore, the maximum possible value of is .



If is even, Adel can draw a similar closed path obtained by symmetry with respect to the first diagonal. Therefore, the maximum possible value of is .

If is odd, Adel can draw the following closed path which passes through dots of his grid:



It remains to prove that this is the maximal possible value of . For this, assign black color to all dots of the grid of coordinates with odd and white color to all dots with even. Any consecutive dots in a path that Adel can draw have different colors. Therefore, the colors of the first and last dots in Adel's path describe the parity of the length of the path. Since the path of Adel is closed, it will start and end with the same color and therefore, its length is even. Therefore is even. This proves that the maximum possible value of is .
Final answer
If both m and n are odd, the maximum k is mn − 1; otherwise, the maximum k is mn.

Techniques

Coloring schemes, extremal argumentsInvariants / monovariants