Olympiad Maths Prep

Track / Stage 7 / 99 of 300 #1499 of 2000

Problem 1499

National olympiad second round; IMO P1/P4
Combinatorics Difficulty 7.2 Prove it

For 2n2n numbers in a row, Bob could perform the following operation:
Si=(a1,a2,,a2n)Si+1=(a1,a3,,a2n1,a2,a4,,a2n).S_i=(a_1,a_2,\ldots,a_{2n})\mapsto S_{i+1}=(a_1,a_3,\ldots,a_{2n-1},a_2,a_4,\ldots,a_{2n}).
Let TT be the order of this operation. In other words, TT is the smallest positive integer such that Si=Si+TS_i=S_{i+T}. Prove that T<2nT<2n.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

1. Define the operation Si S_i as follows:
Si=(a1,a2,,a2n)Si+1=(a1,a3,a5,,a2n1,a2,a4,a6,,a2n) S_i = (a_1, a_2, \ldots, a_{2n}) \mapsto S_{i+1} = (a_1, a_3, a_5, \ldots, a_{2n-1}, a_2, a_4, a_6, \ldots, a_{2n})
This operation rearranges the sequence by taking all odd-indexed elements first, followed by all even-indexed elements.

2. Define the function f(k) f(k) that maps the position k k in Si S_i to its new position in Si+1 S_{i+1} :
f(k)={k+12,if k1(mod2),k2+n,if k0(mod2). f(k) = \begin{cases} \frac{k+1}{2}, & \text{if } k \equiv 1 \pmod{2}, \\ \frac{k}{2} + n, & \text{if } k \equiv 0 \pmod{2}. \end{cases}

3. Note that a1 a_1 and a2n a_{2n} never change positions. Therefore, we only need to consider the positions 2k2n1 2 \le k \le 2n-1 .

4. Combine the above relations into a single congruence:
f(k)k+12(mod2n1) f(k) \equiv \frac{k+1}{2} \pmod{2n-1}
This can be rewritten as:
2(f(k)1)k1(mod2n1) 2(f(k) - 1) \equiv k - 1 \pmod{2n-1}

5. Let r=φ(2n1) r = \varphi(2n-1) , where φ \varphi is Euler's totient function. Since 2n1 2n-1 is odd, φ(2n1)<2n \varphi(2n-1) < 2n .

6. Consider the iterated function f(r)(k) f^{(r)}(k) :
f(r)(k)12r(f(r)(k)1)k1(mod2n1) f^{(r)}(k) - 1 \equiv 2^r (f^{(r)}(k) - 1) \equiv k - 1 \pmod{2n-1}
This implies:
f(r)(k)=k f^{(r)}(k) = k
Therefore, the sequence returns to its original order after r r operations.

7. Since r=φ(2n1)<2n r = \varphi(2n-1) < 2n , we have:
Tr<2n T \le r < 2n

The final answer is T<2n \boxed{ T < 2n } .

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.