Maths Olympiad Prep

Track / Stage 6 / 371 of 400 #1851 of 2444

Problem 1851

National Olympiad, first round
Number theory Difficulty 6.9 Prove it Middle European Mathematical Olympiad · Middle European Mathematical Olympiad (MEMO)

Let n3n \geqslant 3 be an integer. Zagi the squirrel sits at a vertex of a regular nn-gon. Zagi plans to make a journey of n1n-1 jumps such that in the ii-th jump, it jumps by ii edges clockwise, for i{1,,n1}i \in\{1, \ldots, n-1\}. Prove that if after n2\left\lceil\frac{n}{2}\right\rceil jumps Zagi has visited n2+1\left\lceil\frac{n}{2}\right\rceil+1 distinct vertices, then after n1n-1 jumps Zagi will have visited all of the vertices.

(Remark. For a real number xx, we denote by x\lceil x\rceil the smallest integer larger or equal to xx.)

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Next problem →

Official solution

Solution:

Number the vertices 0,1,,n10,1, \ldots, n-1 clockwise starting at the vertex Zagi is on. After his ii-th jump Zagi will be at a vertex numbered 1+2++i=i(i+1)2(modn)1+2+\cdots+i=\frac{i(i+1)}{2} \pmod n. We need to prove that if for all k{0,1,2,,n2}k \in\left\{0,1,2, \ldots,\left\lceil\frac{n}{2}\right\rceil\right\} the fractions k(k+1)2\frac{k(k+1)}{2} achieve different values modulo nn then they achieve different values modulo nn even for all k{0,1,2,,n1}k \in\{0,1,2, \ldots, n-1\}. We will in fact prove two following claims:

- for numbers of the form n=2rn=2^{r}, with r2r \geq 2, all k{0,1,2,,n1}k \in\{0,1,2, \ldots, n-1\} the fractions k(k+1)2\frac{k(k+1)}{2} achieve different values mod nn;
- for numbers of the form n=2rln=2^{r} \cdot l, with r0r \geq 0 and l3l \geq 3 odd, we have that there exist distinct a,b{0,1,2,,n2}a, b \in\left\{0,1,2, \ldots,\left\lceil\frac{n}{2}\right\rceil\right\} such that a(a+1)2b(b+1)2(modn)\frac{a(a+1)}{2} \equiv \frac{b(b+1)}{2} \pmod n.

Let us firstly observe nn of the form 2r2^{r}, with r2r \geq 2. Let us assume that there are 1b<an11 \leq b < a \leq n-1 such that a(a+1)2b(b+1)2(mod2r)\frac{a(a+1)}{2} \equiv \frac{b(b+1)}{2} \pmod{2^{r}}. Equivalently, 2r+1(ab)(a+b+1)2^{r+1} \mid (a-b)(a+b+1). Factors on the right hand side have different parity, thus we have either 2r+1ab2^{r+1} \mid a-b or 2r+1a+b+12^{r+1} \mid a+b+1. In the first case we have that abn1<2na-b \leq n-1 < 2n. In the second case we have a+b+1(n1)+(n2)+1=2n2<2na+b+1 \leq (n-1)+(n-2)+1 = 2n-2 < 2n. Hence, in both cases we obtain contradiction, and we can conclude that there indeed do not exist such aa and bb.

Let us now observe nn of the form 2rl2^{r} \cdot l, with r0,l3r \geq 0, l \geq 3 odd. Set M=max{2r+1,l}M=\max \left\{2^{r+1}, l\right\} and m=min{2r+1,l}m=\min \left\{2^{r+1}, l\right\}. We claim that the pair (a,b)=(M+m12,Mm12)(a, b)=\left(\frac{M+m-1}{2}, \frac{M-m-1}{2}\right) satisfies the desired conditions. Indeed:

- Since 2r+12^{r+1} is even and ll is odd, both M+m1M+m-1 and Mm1M-m-1 are even and thus a,ba, b are integers.
- We have: a(a+1)2b(b+1)2=12(ab)(a+b+1)=12mM=2rl=n\frac{a(a+1)}{2}-\frac{b(b+1)}{2}=\frac{1}{2}(a-b)(a+b+1)=\frac{1}{2} m \cdot M=2^{r} l=n.
- Since M>m>0M>m>0, we have 0b<a0 \leq b < a.

It remains to argue that an2a \leq \left\lceil\frac{n}{2}\right\rceil. Since r0r \geq 0 and l3l \geq 3 we conclude that both m,Mm, M are greater or equal to min{2r+1,l}2\min \left\{2^{r+1}, l\right\} \geq 2. From mM=2nm M=2 n, they are both less or equal to nn. So we have inequality (mn)(m2)0(m-n)(m-2) \leq 0, which implies m+M=m+2nm2+nm+M=m+\frac{2 n}{m} \leq 2+n. Hence a=M+m12n+12n2a=\frac{M+m-1}{2} \leq \frac{n+1}{2} \leq \left\lceil\frac{n}{2}\right\rceil as desired.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.