Olympiad Maths Prep

Library / /37 of 41

Number theory Difficulty 6.7 National olympiad Prove it Romania

The elements of the set {1,2,,21}\{1, 2, \dots, 21\} are written randomly on a circle, in the order a1,a2,,a21a_1, a_2, \dots, a_{21} (see figure). Consider the sums
S1=a1+a2+a3+a4+a5, S2=a2+a3+a4+a5+a6,  S17=a17+a18+a19+a20+a21, S18=a18+a19+a20+a21+a1. \begin{align*} S_1 &= a_1 + a_2 + a_3 + a_4 + a_5, \ S_2 &= a_2 + a_3 + a_4 + a_5 + a_6, \ \vdots \ S_{17} &= a_{17} + a_{18} + a_{19} + a_{20} + a_{21}, \ S_{18} &= a_{18} + a_{19} + a_{20} + a_{21} + a_1. \end{align*}

Figure 1

Show that at least two of the 18 sums leave different remainders when divided by 5.

Solution

Suppose that S1,S2,,S18S_1, S_2, \dots, S_{18} leave the same remainder when divided by 5. Since S1=a1+(a2+a3+a4+a5)S_1 = a_1 + (a_2 + a_3 + a_4 + a_5) and S2=(a2+a3+a4+a5)+a6S_2 = (a_2 + a_3 + a_4 + a_5) + a_6, if S1S_1 and S2S_2 leave the same remainder when divided by 5, then a1a_1 and a6a_6 leave the same remainder when divided by 5. In the same way:

1. a1,a6,a11,a16a_1, a_6, a_{11}, a_{16} and a21a_{21} leave the same remainder, xx, when divided by 5.
2. a2,a7,a12,a17a_2, a_7, a_{12}, a_{17} leave the same remainder, aa, when divided by 5.
3. a3,a8,a13,a18a_3, a_8, a_{13}, a_{18} leave the same remainder, bb, when divided by 5.
4. a4,a9,a14,a19a_4, a_9, a_{14}, a_{19} leave the same remainder, cc, when divided by 5.
5. a5,a10,a15,a20a_5, a_{10}, a_{15}, a_{20} leave the same remainder, dd, when divided by 5.

Since {a1,a2,,a21}={1,2,,21}\{a_1, a_2, \dots, a_{21}\} = \{1, 2, \dots, 21\}, there are 5 remainders equal to 1 and 4 remainders equal to each of 2, 3, 4 or 0.
It follows x=1x = 1 and {a,b,c,d}={0,2,3,4}\{a, b, c, d\} = \{0, 2, 3, 4\}.

Now S1=M5+1+0+2+3+4=M5S_1 = \mathcal{M}5 + 1 + 0 + 2 + 3 + 4 = \mathcal{M}5 and S18=M5+b+M5+c+M5+d+M5+1+M5+1=M5+2+(a+b+c+d)a=M5+11aS_{18} = \mathcal{M}5 + b + \mathcal{M}5 + c + \mathcal{M}5 + d + \mathcal{M}5 + 1 + \mathcal{M}5 + 1 = \mathcal{M}5 + 2 + (a + b + c + d) - a = \mathcal{M}5 + 11 - a.

Since S1S_1 and S18S_{18} leave the same remainder when divided by 5, it follows that 11a=M511 - a = \mathcal{M}5, whence a=1a = 1 – contradiction.

Looking for a route rather than 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.