Skip to main content
OlympiadHQ

Browse · MathNet

Print

Dutch Mathematical Olympiad

Netherlands counting and probability

Problem

A frog jumps around on the grid points in the plane, from one grid point to another. The frog starts at the point . Then it makes, successively, a jump of one step horizontally, a jump of steps vertically, a jump of steps horizontally, a jump of steps vertically, et cetera. Determine all such that the frog can be back in after jumps.
Solution
(a) When the frog has finished jumps, it has made steps in total. To get back at , the frog must make the same number of steps to the left and the right. Thus, the total number of steps must be even. This means that is even, and hence is a multiple of four. This yields that or must be a multiple of four, that is, is of the form or . Potential values for are . Now we will show that for each of these values of the frog can get back at after jumps. We will prove this by induction. For and , it is not hard to find a solution: and . Now suppose that we can choose pluses and minuses such that for a certain integer . Then we can also find a combination of pluses and minuses such that . Indeed: It follows that the frog can indeed get back to after jumps for each of the form or .

(b) This problem actually consists of two variants on part (a), namely in the horizontal and the vertical direction. We start by considering the vertical direction. The frog is making jumps consisting of even numbers of steps. This is actually what was happening in part (a), except that the jumps are twice as long. Hence, the frog can end up on the x-axis if the last jump in the vertical direction consists of or steps. Now we have to investigate whether the frog can also arrive back on the y-axis, and hence at the origin . The last horizontal jump is one before or one after the last vertical jump, hence the last horizontal jump must consist of , , or steps. We will investigate whether it is possible that for of the form , , or . To get back to the y-axis, the total number of horizontal steps must be even. Because each jump consists of an odd number of steps, the frog must make an even number of jumps in the horizontal direction. If the last horizontal jump is of the form or , then the total number of horizontal jumps is odd. This cannot happen. For the remaining case , we will use induction to prove that this case is possible. Suppose that the last horizontal jump consists of steps. We show that we can put pluses and minuses such that . For , we find . Suppose that for a certain , we have . Then and we can choose pluses and minuses such that Now we have shown that we can put pluses and minuses such that for each integer .

We conclude that there are two possibilities for the frog to end at the origin . The first is for : the second to last jump consists of vertical steps, and the last jump consists of horizontal steps. The second is , then the second last jump consists of horizontal steps and the last jump consists of vertical steps.
Final answer
All n with n ≡ 0 or 7 modulo 8

Techniques

Invariants / monovariantsInduction / smoothingSums and products