Maths Olympiad Prep

Library / /27 of 30

Combinatorics Difficulty 6.7 National Olympiad Prove it Italy

Problem:

Let nn be a positive integer. A flea is located on the real line and performs a sequence of nn jumps of length 1,2,3,,n1,2,3, \ldots, n. The flea can choose the order of the jump lengths and for each jump it can decide whether to jump to the right or to the left.

a. Prove that for n=2012n=2012 the flea can end the sequence of jumps at the same point from which it started.

b. Prove that for n=2013n=2013 this is not possible.

c. In general, for which nn can it return to the starting point?

Solution

Solution:

a. Since 20122012 is a multiple of 44, we can consider the quadruples of consecutive numbers (k,k+1,k+2,k+3)(k, k+1, k+2, k+3) and observe that it is possible to return to the starting point every four steps, since it suffices to jump first to the right by kk, then to the left by k+1k+1, again to the left by k+2k+2, and finally to the right by k+3k+3:
k(k+1)(k+2)+k+3=0 k-(k+1)-(k+2)+k+3=0
Obviously one can swap the jumps to the right and to the left and permute their order.

b. If we consider the numbers from 11 to 20132013, we have that, regardless of the sign we place in front of each number, the sum will be odd, since there are 10071007 odd terms, and therefore it cannot be 00.

c. It turns out that it is possible to return to the starting point for all numbers that have remainder 00 or 33 upon division by 44. For multiples of 44 one can use the same reasoning used for 20122012. For numbers belonging to the residue class 33 modulo 44, we observe that with the first 33 jumps the flea can return to the origin: 1+23=01+2-3=0, after which there remain a number of jumps that is a multiple of 44, so they can be grouped as shown for the case n=2012n=2012. Alternatively, one can reduce to the previous case by introducing a virtual jump of length 00 and grouping 44 at a time.
For nn that gives remainder 11 or 22 upon division by 44 it is not possible to return to the starting point. Indeed, however the direction of the jumps is chosen, that is, the signs, we will have a sum with an odd number of odd terms, hence odd itself, and, in particular, different from 00.

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 translated into English from it; metadata (topic, difficulty) added by this project.