Daily

Random

Practice set

Baltic Way 2011 · Shortlist problem

Combinatorics

Call an n-tuple (a1,…,an)(a_1, \dots, a_n) of real numbers stable if the sums a1+a2+⋯+aka_1 + a_2 + \dots + a_k where 0<k≤n0 < k \le n, as well as the sums an+an−1+⋯+an−ka_n + a_{n-1} + \dots + a_{n-k} where 0≤k<n0 \le k < n, are either all negative or all non-negative.

Let kk be any natural number. Consider all stable (2k+1)(2k+1)-tuples consisting of real numbers that are alternately negative and non-negative. Find the least possible number of stable subtuples with more than one element that can be contained in such a tuple.

(A Subtuple of (a1,…,an)(a_1, \dots, a_n) is any tuple (ai,…,aj)(a_i, \dots, a_j), 1≤i≤j≤n1 \le i \le j \le n, of elements consecutive in the original tuple.)

Change pool

When you’re ready

Review material becomes available with the next Daily.

Review

Topics

Colorings and configurations · Pigeonhole and extremal arguments · Induction and recursion

Solutions

Solution

Answer: kk.

Call stable tuples, whose elements are alternately negative and non-negative, interesting. We first show that each interesting tuple contains at least one stable subtuple of 3 elements.

For that, consider elements whose absolute value is minimal in the tuple. If there exists a negative such element, denote it aia_i, then the sum of aia_i and its any neighbour is non-negative. Thus aia_i is neither the first nor the last in the tuple because of stability of the tuple. But then both ai−1+aia_{i-1} + a_i and ai+ai+1a_i + a_{i+1} are non-negative, as well as ai−1+ai+ai+1a_{i-1} + a_i + a_{i+1}, hence (ai−1,ai,ai+1)(a_{i-1}, a_i, a_{i+1}) is a stable subtuple.

On the other hand, if all elements with minimal absolute value are non-negative then let aia_i be any of them. Analogously to the previous case, both ai−1+aia_{i-1} + a_i and ai+ai+1a_i + a_{i+1} are negative, as well as ai−1+ai+ai+1a_{i-1} + a_i + a_{i+1}, whence (ai−1,ai,ai+1)(a_{i-1}, a_i, a_{i+1}) is a stable tuple.

Next we can see that replacing an element in a stable tuple with a stable subtuple whose sum of elements equals to the element removed always leads to a stable tuple. For that, let the original tuple be (a1,…,an)(a_1, \dots, a_n) and let aia_i be replaced with b1,…,bmb_1, \dots, b_m. If n=1n=1 then the claim is trivial, hence assume that n>1n > 1. Consider an arbitrary subtuple starting from the beginning of the whole tuple. If either no substituted elements are included or all substituted elements are included then the sum falls to the right side of zero by assumptions. If the subtuple ends with some bjb_j then the sum of its elements is a1+⋯+ai−1+b1+⋯+bja_1 + \dots + a_{i-1} + b_1 + \dots + b_j. By stability of (b1,…,bm)(b_1, \dots, b_m), the sum b1+⋯+bjb_1 + \dots + b_j falls to the same side from zero as aia_i and bj+1+⋯+bmb_{j+1} + \dots + b_m. Hence b1+⋯+bjb_1 + \dots + b_j falls between 0 and aia_i. As a1+⋯+ai−1a_1 + \dots + a_{i-1} and a1+⋯+ai−1+aia_1 + \dots + a_{i-1} + a_i fall to the same side from zero, also a1+⋯+ai−1+b1+⋯+bja_1 + \dots + a_{i-1} + b_1 + \dots + b_j falls to the same side. Similarly, we can show the desired property for subtuples taken from the end of the tuple.

Lastly, we show by induction on kk that any interesting (2k+1)(2k+1)-tuple contains at least kk stable subtuples containing more than one element. If k=0k = 0 then the claim holds trivially. Suppose that k>0k > 0 and the claim holds for k−1k - 1. Find a stable subtuple of 3 elements in the given (2k+1)(2k + 1)-tuple. After replacing these three elements with their sum, we get a (2(k−1)+1)(2(k - 1) + 1)-tuple that is clearly stable. By stability of the 3-tuple replaced, the sum of its elements falls to the same side from zero as its first and third element, hence the alternation of signs is also maintained. By the induction hypothesis, the new tuple contains at least k−1k-1 stable subtuples of more than one element. After substituting the removed elements back, each of these kk stable subtuples remains stable. Moreover, the 3-tuple itself will be the desired kkth stable subtuple.

It remains to show that there are interesting (2k+1)(2k+1)-tuples that contain no more than kk stable subtuples. For example, let ai=(−12)ia_i = \left(-\frac{1}{2}\right)^i for i=1,…,2ki = 1, \dots, 2k and a2k+1=−13a_{2k+1} = -\frac{1}{3}. The sum of the first 2j2j elements is −1−14j3-\frac{1 - \frac{1}{4j}}{3} that is negative. Thus also the sum of 2j+12j+1 elements is always negative. As a2+⋯+a2k=−1−14k3+12<13a_2 + \dots + a_{2k} = -\frac{1 - \frac{1}{4k}}{3} + \frac{1}{2} < \frac{1}{3}, also all sums of consecutive elements taken from the end are negative. Thus the tuple is stable.

Consider any subtuple (au,…,av)(a_u, \dots, a_v) where u<v≤2ku < v \le 2k. If uu and vv have different parity then the subtuple is not stable (every interesting tuple must have an odd number of elements). If uu and vv are both odd then au+au+1<0a_u + a_{u+1} < 0 while av−1+av>0a_{v-1} + a_v > 0. The case with uu and vv both even is analogous. Thus the subtuple under consideration is not stable.

Hence only those of the subtuples with more than one element that contain a2k+1a_{2k+1} can be stable. But there are only kk such subtuples of odd length. This completes the solution.