Maths Olympiad Prep

Track / Stage 6 / 371 of 400 #2011 of 2604

Problem 2011

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

Let n⩾3n \geqslant 3 be an integer. Zagi the squirrel sits at a vertex of a regular nn-gon. Zagi plans to make a journey of n−1n-1 jumps such that in the ii-th jump, it jumps by ii edges clockwise, for i∈{1,…,n−1}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 n−1n-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,…,n−10,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,…,n−1}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 r≥2r \geq 2, all k∈{0,1,2,…,n−1}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=2r⋅ln=2^{r} \cdot l, with r≥0r \geq 0 and l≥3l \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)2≡b(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 r≥2r \geq 2. Let us assume that there are 1≤b<a≤n−11 \leq b < a \leq n-1 such that a(a+1)2≡b(b+1)2(mod2r)\frac{a(a+1)}{2} \equiv \frac{b(b+1)}{2} \pmod{2^{r}}. Equivalently, 2r+1∣(a−b)(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+1∣a−b2^{r+1} \mid a-b or 2r+1∣a+b+12^{r+1} \mid a+b+1. In the first case we have that a−b≤n−1<2na-b \leq n-1 < 2n. In the second case we have a+b+1≤(n−1)+(n−2)+1=2n−2<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 2r⋅l2^{r} \cdot l, with r≥0,l≥3r \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+m−12,M−m−12)(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+m−1M+m-1 and M−m−1M-m-1 are even and thus a,ba, b are integers.
- We have: a(a+1)2−b(b+1)2=12(a−b)(a+b+1)=12m⋅M=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 0≤b<a0 \leq b < a.

It remains to argue that a≤⌈n2⌉a \leq \left\lceil\frac{n}{2}\right\rceil. Since r≥0r \geq 0 and l≥3l \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 (m−n)(m−2)≤0(m-n)(m-2) \leq 0, which implies m+M=m+2nm≤2+nm+M=m+\frac{2 n}{m} \leq 2+n. Hence a=M+m−12≤n+12≤⌈n2⌉a=\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.