Maths Olympiad Prep

Library / /3 of 36

, 2023

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

The Perseverance is NASA's Mars rover exploring this planet. Every day it starts in home base and then goes north, south, east or west. Every one kilometer the robot makes one 9090^\circ turn. Moreover, the robot doesn't want to check the same place twice during the day (except for the home base, which is always the starting and the ending point of its trip). What are the possible lengths of the robot's path?

Solution

Let's define the coordinate system with the origin point at the home base and vertical-horizontal axes. W.l.o.g. assume that the first move was east and the path had length of nn. Then each odd move changed the xx coordinate of the robot by 11 and each even move changed the yy coordinate by 11.

At the end of the day both coordinates were equal to zero again, so there had to be an even number of odd and an even number of even moves. That implies that only nn divisible by 44 can fulfill the conditions.

For n=4n = 4 we have a square path. For n=8n = 8 we had 44 changes of xx coordinate and 44 changes of yy, so the whole path was inside some

For n=12n = 12 there is a path in the shape of "+" with first 44 moves like (,,,)(\rightarrow, \uparrow, \rightarrow, \uparrow). Now we can change the middle (,)(\uparrow, \rightarrow) sequence by (,,,,,)(\downarrow, \rightarrow, \uparrow, \rightarrow, \uparrow, \leftarrow). Thanks to this change the robot explored new territory south-east from the one before explored. We got +4+4 of length of the path. There we can do it again and again, reaching any length of 4k+84k + 8 for all kZ+k \in \mathbb{Z}^+.

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.