Maths Olympiad Prep

Library / /7 of 96

, 2021

Combinatorics Difficulty 7.6 National Olympiad, round 2 Prove it Baltic Way

John has a string of paper where nn real numbers ai[0,1]a_i \in [0, 1], for all i{1,,n}i \in \{1, \dots, n\}, are written in a row. Show that for any given k<nk < n, he can cut the string of paper into kk pieces, between adjacent numbers, in such a way that sum of the numbers on each piece does not differ from another by more than 1.

Solution

Denote the sums on each piece by
S1=a1+a2++am1,S2=am1+1+am1+2++am2,Sk=amk1+1++amk. \begin{align*} S_1 &= a_1 + a_2 + \dots + a_{m_1}, \\ S_2 &= a_{m_1+1} + a_{m_1+2} + \dots + a_{m_2}, \\ \vdots \\ S_k &= a_{m_{k-1}+1} + \dots + a_{m_k}. \end{align*}
By abuse of notation SiS_i will both denote the set of numbers enclosed by cuts and its sum, the meaning of which must be determined by the context.

We will start the following algorithm. During this algorithm we will move some elements to the neighbouring piece and construct new sequence of pieces S=(S1,S2,,Sk)S^* = (S_1^*, S_2^*, \dots, S_k^*). Empty pieces may appear.

(i) Find pkp \le k such that SpS_p is the piece with the maximum sum of elements.

(ii) If Spmin(S1,,Sk)+1S_p \le \min(S_1, \dots, S_k) + 1 we are done.

(iii) If Sp>min(S1,,Sk)+1S_p > \min(S_1, \dots, S_k) + 1, let SqS_q be the pieces with minimum sum of elements nearest to SpS_p (ties broken arbitrarily) and let ShS_h be the next pieces to SqS_q between SpS_p and SqS_q (it is non empty by the choice of SqS_q). Then either p<qp < q and then h=q1h = q - 1 and we define SS^* by moving the last element from Sh=Sq1S_h = S_{q-1} to SqS_q, or q<pq < p, and then h=q+1h = q + 1 and SS^* is obtained by moving the first element of Sh=Sq+1S_h = S_{q+1} to SqS_q. If p=hp = h then set S=SS = S^* and go to step (1). If php \ne h then set S=SS = S^* and proceed to step (2).

Note that in step (3) each number SiS_i^* is at most SpS_p and no new pieces with sum SpS_p is created. Indeed, Sh<ShSpS_h^* < S_h \le S_p, and for some jj Sq=Sq+aj<SpS_q^* = S_q + a_j < S_p since aj[0,1]a_j \in [0, 1] and Sp>min(S1,,Sk)+1S_p > \min(S_1, \dots, S_k) + 1. It is clear also that max(S1,,Sk)\max(S_1, \dots, S_k) does not increase during the algorithm.

Note also that in step (3) the pieces ShS_h may become empty. Then, in the next iteration of the algorithm, q=hq = h will be chosen since min(S1,,Sk)=Sh=0\min(S_1, \dots, S_k) = S_h = 0 and in step (3) ShS_h^* will become non empty (but one of its neighbours may become empty, etc.).

Claim. Step (3) is repeated at most knkn times with SpS_p being the same maximal pieces in SS^* and in SS.

Proof. Let sis_i be the number of elements in ii-th pieces. Then the number
i=1kipsi \sum_{i=1}^{k} |i - p|s_i
takes positive integral values and is always less than knkn. It is clear that this number decreases during the algorithm.

Thus after at most knkn iteration of (3), the algorithm decreases the value of SpS_p and so goes to (1). Consequently it decreases either the number of pieces with maximal sums or max(S1,,Sk)\max(S_1, \dots, S_k). As there are only finitely many ways to split the sum onto pieces, the algorithm eventually terminates at (2). \square

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.