Maths Olympiad Prep

Library / /52 of 70

Combinatorics Difficulty 8.4 Shortlist Prove it Romania

Let nn be a positive integer. If σ\sigma is a permutation of the first nn positive integers, let S(σ)S(\sigma) be the set of all distinct sums of the form i=kσ(i)\sum_{i=k}^{\ell} \sigma(i), where 1kn1 \le k \le \ell \le n.
a) Exhibit a permutation σ\sigma of the first nn positive integers such that S(σ)(n+1)2/4|S(\sigma)| \ge \lfloor(n+1)^2/4\rfloor.
b) Show that S(σ)>nn/42|S(\sigma)| > n\sqrt{n}/4\sqrt{2} for all permutations σ\sigma of the first nn positive integers.

Solution

a) We show that the permutation σ\sigma of the first nn positive integers, defined by σ(i)=(i+1)/2\sigma(i) = (i+1)/2 for each positive odd ini \le n, and σ(i)=ni/2+1\sigma(i) = n - i/2 + 1 for each positive even ini \le n, satisfies the required condition.
More precisely, we show that the (n+1)2/4\lfloor(n+1)^2/4\rfloor sums of the form i=kσ(i)\sum_{i=k}^{\ell} \sigma(i), where 1kn1 \le k \le \ell \le n and k(mod2)k \equiv \ell \pmod 2, are pairwise distinct, so S(σ)(n+1)2/4|S(\sigma)| \ge \lfloor(n+1)^2/4\rfloor.
Let 1kn1 \le k \le \ell \le n and k(mod2)k \equiv \ell \pmod 2, and notice that σ(i)+σ(i+1)=n+1\sigma(i) + \sigma(i+1) = n+1 for every positive odd ini \le n, so
i=kσ(i)={(k)(n+1)/2+σ()if k is odd,σ(k)+(k)(n+1)/2if k is even. \sum_{i=k}^{\ell} \sigma(i) = \begin{cases} (\ell-k)(n+1)/2 + \sigma(\ell) & \text{if } k \text{ is odd,} \\ \sigma(k) + (\ell-k)(n+1)/2 & \text{if } k \text{ is even.} \end{cases}
Since the absolute value of an integer of the form σ(i)σ(j)\sigma(i) - \sigma(j) is less than nn, the above formula shows that the assignment (k,)i=kσ(i)(k, \ell) \mapsto \sum_{i=k}^{\ell} \sigma(i) is indeed injective on the pairs in question.

b) Let σ\sigma be a permutation of the first nn positive integers, and split S(σ)S(\sigma) into Sm(σ)=S(σ)[mn+1,mn+n]S_m(\sigma) = S(\sigma) \cap [mn + 1, mn + n], where mm runs through the integers; of course, Sm(σ)S_m(\sigma) is empty if mm is negative or m>(n1)/2m > (n-1)/2, and S0(σ)n|S_0(\sigma)| \ge n.
Leaving aside the trivial cases n=1n=1 and n=2n=2, we assume n3n \ge 3 and prove that
Sm(σ)+Sm1(σ)>2n,() |S_m(\sigma)| + |S_{m-1}(\sigma)| > \sqrt{2n}, \quad (*)
for every non-negative integer m(n+1)/4m \le (n+1)/4. The conclusion then follows by summing over this range:
S(σ)12m=0(n+1)/4(Sm(σ)+Sm1(σ))>12n+542n>nn42. |S(\sigma)| \ge \frac{1}{2} \sum_{m=0}^{\lfloor(n+1)/4\rfloor} (|S_m(\sigma)| + |S_{m-1}(\sigma)|) > \frac{1}{2} \left\lfloor \frac{n+5}{4} \right\rfloor \sqrt{2n} > \frac{n\sqrt{n}}{4\sqrt{2}}.
To prove (*), fix a non-negative integer m(n+1)/4m \le (n+1)/4. We will show that the Minkowski difference Sm(σ)(Sm(σ)Sm1(σ))S_m(\sigma) - (S_m(\sigma) \cup S_{m-1}(\sigma)) contains every positive integer less than or equal to nn; alternatively, but equivalently, that it contains every σ(k)\sigma(k). Then so does (Sm(σ)Sm1(σ))(Sm(σ)Sm1(σ))(S_m(\sigma) \cup S_{m-1}(\sigma)) - (S_m(\sigma) \cup S_{m-1}(\sigma)), so Sm(σ)+Sm1(σ)=Sm(σ)Sm1(σ)>2n|S_m(\sigma)| + |S_{m-1}(\sigma)| = |S_m(\sigma) \cup S_{m-1}(\sigma)| > \sqrt{2n}, for if XX is a finite set of numbers such that {1,2,,n}XX\{1, 2, \dots, n\} \subseteq X - X, then X(X1)+1XX2n+1|X| \cdot (|X| - 1) + 1 \ge |X - X| \ge 2n + 1, so X(1+8n+1)/2>2n|X| \ge (1 + \sqrt{8n+1})/2 > \sqrt{2n}.
Finally, we show that every σ(k)\sigma(k) is a member of Sm(σ)(Sm(σ)Sm1(σ))S_m(\sigma) - (S_m(\sigma) \cup S_{m-1}(\sigma)). To this end, fix a positive integer knk \le n, and notice that at least one of the sums i=1kσ(i)\sum_{i=1}^k \sigma(i), i=knσ(i)\sum_{i=k}^n \sigma(i) exceeds n(n+1)/4mnn(n+1)/4 \ge mn. Let i=knσ(i)>mn\sum_{i=k}^n \sigma(i) > mn — the other case is easily dealt with dually —, and consider the smallest integer k\ell \ge k such that i=kσ(i)>mn\sum_{i=k}^{\ell} \sigma(i) > mn. With reference to this minimality, it is readily checked that the sums i=kσ(i)\sum_{i=k}^{\ell} \sigma(i) and i=k+1σ(i)\sum_{i=k+1}^{\ell} \sigma(i) belong to Sm(σ)S_m(\sigma) and Sm(σ)Sm1(σ)S_m(\sigma) \cup S_{m-1}(\sigma), respectively, so σ(k)\sigma(k) is indeed a member of Sm(σ)(Sm(σ)Sm1(σ))S_m(\sigma) - (S_m(\sigma) \cup S_{m-1}(\sigma)).

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 reproduced verbatim; metadata (topic, difficulty) added by this project.