Maths Olympiad Prep

Track / Stage 7 / 185 of 300 #1585 of 1964

Problem 1585

National olympiad second round; IMO P1/P4
Number theory Difficulty 7.3 Find the answer

For any given integers m,nm,n such that 2m<n2\leq m<n and (m,n)=1(m,n)=1. Determine the smallest positive integer kk satisfying the following condition: for any mm-element subset II of {1,2,,n}\{1,2,\cdots,n\} if iIi>k\sum_{i\in I}i> k, then there exists a sequence of nn real numbers a1a2ana_1\leq a_2 \leq \cdots \leq a_n such that

1miIai>1ni=1nai\frac1m\sum_{i\in I} a_i>\frac1n\sum_{i=1}^na_i

A number or a short expression. Spacing and $ signs are ignored.

Official solution

1. Assumption and Simplification:
- We start by noting that the sequence a1,a2,,ana_1, a_2, \ldots, a_n satisfies the given conditions if and only if the sequence (a1+w,a2+w,,an+w)(a_1 + w, a_2 + w, \ldots, a_n + w) also satisfies the conditions for any real number ww. Therefore, we can assume without loss of generality that a1=0a_1 = 0.

2. Subset and Condition:
- Consider any mm-element subset I={i1,i2,,im}I = \{i_1, i_2, \ldots, i_m\} of {1,2,,n}\{1, 2, \ldots, n\} with i1<i2<<imi_1 < i_2 < \cdots < i_m. We need to ensure that for any such subset, if iIi>k\sum_{i \in I} i > k, then 1miIai>1ni=1nai\frac{1}{m} \sum_{i \in I} a_i > \frac{1}{n} \sum_{i=1}^n a_i.

3. Rewriting the Condition:
- Given a1a2ana_1 \leq a_2 \leq \cdots \leq a_n, we can rewrite the sequence as (0,0,,0,ai1,ai1,,ai1,ai2,ai2,,ai2,,aim,aim,,aim)(0, 0, \ldots, 0, a_{i_1}, a_{i_1}, \ldots, a_{i_1}, a_{i_2}, a_{i_2}, \ldots, a_{i_2}, \ldots, a_{i_m}, a_{i_m}, \ldots, a_{i_m}).

4. Inequality Transformation:
- We need to show that:
ai1+ai2++aimm(j=1m1aij(ij+1ij))+aim(nim+1)n \frac{a_{i_1} + a_{i_2} + \cdots + a_{i_m}}{m} \geq \frac{\left( \sum_{j=1}^{m-1} a_{i_j} (i_{j+1} - i_j) \right) + a_{i_m} (n - i_m + 1)}{n}
Simplifying, we get:
(j=1m1aij(nm(ij+1ij)))+aim(nm(nim+1))0 \left( \sum_{j=1}^{m-1} a_{i_j} (n - m (i_{j+1} - i_j)) \right) + a_{i_m} (n - m (n - i_m + 1)) \geq 0

5. Introducing Differences:
- Let tik=aikaik1>0t_{i_k} = a_{i_k} - a_{i_{k-1}} > 0 for k=2,3,,mk = 2, 3, \ldots, m. The inequality reduces to:
ai1(mnm(ni1+1))+j=2mtij((m(j1))nm(nij+1))0 a_{i_1} (mn - m (n - i_1 + 1)) + \sum_{j=2}^{m} t_{i_j} ((m - (j-1)) n - m (n - i_j + 1)) \geq 0
where ti2,ti3,,tim>0t_{i_2}, t_{i_3}, \ldots, t_{i_m} > 0 and ai10a_{i_1} \geq 0.

6. Non-existence Condition:
- There does not exist such ai1,ti1,ti2,,tima_{i_1}, t_{i_1}, t_{i_2}, \ldots, t_{i_m} if and only if:
mnm(ni1+1)<0and(m(j1))nm(nij+1)<0for all j=2,3,,m mn - m (n - i_1 + 1) < 0 \quad \text{and} \quad (m - (j-1)) n - m (n - i_j + 1) < 0 \quad \text{for all } j = 2, 3, \ldots, m

7. Choosing Indices:
- This means that if i1=1=n(11)m+1i_1 = 1 = \left\lfloor \frac{n(1-1)}{m} + 1 \right\rfloor and ij=n(j1)m+1i_j = \left\lfloor \frac{n(j-1)}{m} + 1 \right\rfloor for all j=2,3,,mj = 2, 3, \ldots, m, then there does not exist a1,a2,,ana_1, a_2, \ldots, a_n.

8. **Finding kk**:
- Therefore, k1+j=2mn(j1)m+1k \geq 1 + \sum_{j=2}^{m} \left\lfloor \frac{n(j-1)}{m} + 1 \right\rfloor.
- For these values of kk, we get that j=1m(ijn(j1)m+1)>0\sum_{j=1}^{m} \left( i_j - \left\lfloor \frac{n(j-1)}{m} + 1 \right\rfloor \right) > 0.
- This implies there exists h{1,2,,m}h \in \{1, 2, \ldots, m\} such that ih>n(h1)m+1i_h > \left\lfloor \frac{n(h-1)}{m} + 1 \right\rfloor, then choosing tiht_{i_h} \rightarrow \infty makes the inequality hold.

9. **Smallest Value of kk**:
- Hence, the smallest value of kk is:
j=1m(n(j1)m+1)=j=1m(1+n(j1)m)(0m+1m++m1m)=(n1)(m1)2+m \sum_{j=1}^{m} \left( \left\lfloor \frac{n(j-1)}{m} + 1 \right\rfloor \right) = \sum_{j=1}^{m} \left( 1 + \frac{n(j-1)}{m} \right) - \left( \frac{0}{m} + \frac{1}{m} + \cdots + \frac{m-1}{m} \right) = \frac{(n-1)(m-1)}{2} + m

The final answer is (n1)(m1)2+m\boxed{\frac{(n-1)(m-1)}{2} + m}

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