Maths Olympiad Prep

Library / /6 of 10

Number theory Difficulty 8.8 Shortlist Prove it China

Let kk, ll, nn be positive integers, and let a1,a2,,ak{1,2,,n}a_1, a_2, \dots, a_k \in \{1, 2, \dots, n\} satisfy the following three conditions:
(1) n3n \ge 3, ln2l \le n-2, and lkn32l-k \le \frac{n-3}{2};
(2) For each t{1,2,,l}t \in \{1, 2, \dots, l\}, there exists a non-empty subset I{1,2,,k}I \subseteq \{1, 2, \dots, k\} such that
iIait(modn); \sum_{i \in I} a_i \equiv t \pmod{n};
(3) For each t{l+1,l+2,,n}t \in \{l+1, l+2, \dots, n\}, there does not exist a non-empty subset I{1,2,,k}I \subseteq \{1, 2, \dots, k\} such that
iIait(modn). \sum_{i \in I} a_i \equiv t \pmod{n}.
Prove that a1+a2++ak=la_1 + a_2 + \dots + a_k = l.

Solution

Proof: For a finite multiset SS of integers, let σ(S)\sigma(S) denote the sum of all elements in SS (counting multiplicities), and let Σ(S)={σ(T)σ(T)TS}\Sigma(S) = \{\sigma(T) \mid \sigma(T) \neq T \subseteq S\}, where Σ(S)\Sigma(S) is treated as a set (ignoring multiplicities). Let Σn(S)\Sigma_n(S) denote the set of congruence classes modulo nn of the elements in Σ(S)\Sigma(S). For xZx \in \mathbb{Z}, let xˉ\bar{x} denote the congruence class of xx modulo nn. Under this notation, conditions (2) and (3) can be written as
Σn({a1,a2,,ak})={1ˉ,2ˉ,,ˉ}. \Sigma_n(\{a_1, a_2, \dots, a_k\}) = \{\bar{1}, \bar{2}, \dots, \bar{\ell}\}.
Step 1: The main idea is to add an element xx to a nonempty multiset SS, obtaining T=S{x}T = S \cup \{x\}. Assuming that neither Σn(S)\Sigma_n(S) nor Σn(T)\Sigma_n(T) contains 0ˉ\bar{0}, we compare Σn(S)\Sigma_n(S) and Σn(T)\Sigma_n(T). In particular, if Σn(T)\Sigma_n(T) contains exactly one more element than Σn(S)\Sigma_n(S), we can deduce a very refined structure for Σn(S)\Sigma_n(S).
Observe that
Σ(T)=Σ(S)(Σ(S)+x){x}, \Sigma(T) = \Sigma(S) \cup (\Sigma(S) + x) \cup \{x\},
so Σn(S)Σn(T)\Sigma_n(S) \subset \Sigma_n(T). Moreover, σ(S)+x\overline{\sigma(S) + x} belongs to Σn(T)\Sigma_n(T) but not to Σn(S)\Sigma_n(S), since otherwise Σn(T)\Sigma_n(T) would contain 0ˉ\bar{0}. Hence, Σn(S)Σn(T)\Sigma_n(S) \subsetneq \Sigma_n(T).
If Σn(T)\Sigma_n(T) contains exactly one more element than Σn(S)\Sigma_n(S), then this new element must be σ(S)+x\overline{\sigma(S) + x}. However, xˉΣn(T)\bar{x} \in \Sigma_n(T), and xˉσ(S)+x\bar{x} \ne \overline{\sigma(S) + x}, so xˉΣn(S)\bar{x} \in \Sigma_n(S).
Let d=ngcd(x,n)d = \frac{n}{\text{gcd}(x,n)}, where dd is the smallest positive integer such that dxˉ=0ˉd\bar{x} = \bar{0}. Suppose xˉ,2xˉ,,pxˉΣn(S)\bar{x}, 2\bar{x}, \dots, p\bar{x} \in \Sigma_n(S), but (p+1)xˉΣn(S)(p+1)\bar{x} \notin \Sigma_n(S). A set of the form
{aˉ,a+x,a+2x,,a+(d1)x} \{\bar{a}, \overline{a+x}, \overline{a+2x}, \dots, \overline{a+(d-1)x}\}
is called a coset of xˉ\bar{x}. The congruence classes modulo nn can be partitioned into nd\frac{n}{d} cosets of xˉ\bar{x}.
If Σn(S)\Sigma_n(S) contains some elements of a coset CC of xˉ\bar{x} but not the entire coset, then (Σn(S)C)+xˉ(\Sigma_n(S) \cap C) + \bar{x} will produce new elements not in Σn(S)C\Sigma_n(S) \cap C. Since Σn(T)\Sigma_n(T) contains only one more element than Σn(S)\Sigma_n(S), it follows that Σn(S)\Sigma_n(S) must consist of several complete cosets of xˉ\bar{x} and one incomplete coset. This incomplete coset can only be {xˉ,2xˉ,,pxˉ}\{\bar{x}, 2\bar{x}, \dots, p\bar{x}\}, and the new element in Σn(T)\Sigma_n(T) is (p+1)xˉ(p+1)\bar{x}, which must equal σ(S)+x\overline{\sigma(S)+x}. Therefore, σ(S)=pxˉ\overline{\sigma(S)} = p\bar{x}.
Step 2: Returning to the original problem, first add n1n-1-\ell copies of 1 to {a1,a2,,ak}\{a_1, a_2, \dots, a_k\}, obtaining a multiset SS. It is easy to see that m:=S=k+(n1)n+12m := |S| = k+(n-1)-\ell \ge \frac{n+1}{2} (using condition (1)), and
Σn(S)={1ˉ,2ˉ,,n1}. \Sigma_n(S) = \{\bar{1}, \bar{2}, \dots, \overline{n-1}\}.
Let the elements of SS be ordered as b1b2bmb_1 \le b_2 \le \dots \le b_m. Then b1=1b_1 = 1 (using condition (1), n2\ell \le n-2, so SS contains at least one 1), and bm<nb_m < n.
If for every 2im2 \le i \le m, we have bi1+b1++bi1b_i \le 1 + b_1 + \dots + b_{i-1}, then by induction, it follows that
Σ(S)={1,2,,b1+b2++bm}. \Sigma(S) = \{1, 2, \dots, b_1 + b_2 + \dots + b_m\}.
Since Σn(S)={1ˉ,2ˉ,,n1}\Sigma_n(S) = \{\bar{1}, \bar{2}, \dots, \overline{n-1}\}, it must be that b1+b2++bm=n1b_1 + b_2 + \dots + b_m = n-1. Removing the added n1n-1-\ell copies of 1, we obtain
a1+a2++ak=. a_1 + a_2 + \dots + a_k = \ell.
Now suppose there exists 2im2 \le i \le m (take the smallest such ii) such that bi>1+b1++bi1b_i > 1 + b_1 + \dots + b_{i-1}. Let s=b1++bi1i1s = b_1 + \dots + b_{i-1} \ge i-1. Then
Σ({b1,,bi1,bi})={1,2,,s,bi,bi+1,,bi+s}. \Sigma(\{b_1, \dots, b_{i-1}, b_i\}) = \{1, 2, \dots, s, b_i, b_i+1, \dots, b_i+s\}.
Since bi<nb_i < n, we have bi+s<nb_i + s < n (otherwise 0Σn(S)\overline{0} \in \Sigma_n(S)), so
Σn({b1,,bi})=2s+12i1. |\Sigma_n(\{b_1, \dots, b_i\})| = 2s + 1 \ge 2i - 1.
Now, iteratively add the remaining elements to {b1,,bi}\{b_1, \dots, b_i\} such that at each step, Σn\Sigma_n gains at least two new elements, until no more can be added. Suppose we obtain TST \subset S with T=ti|T| = t \ge i, satisfying
Σn(T)2i1+2(ti)=2t1. |\Sigma_n(T)| \ge 2i - 1 + 2(t - i) = 2t - 1.
It follows that t<mt < m, since otherwise Σn(T)2m1n|\Sigma_n(T)| \ge 2m-1 \ge n, which is a contradiction. Now, the remaining elements must each add only one new element to Σn\Sigma_n when included in TT.
Claim: The remaining elements are all identical.
Suppose xx and yy are remaining elements, and both Σn(T{x})\Sigma_n(T \cup \{x\}) and Σn(T{y})\Sigma_n(T \cup \{y\}) contain exactly one more element than Σn(T)\Sigma_n(T). By the conclusion of Step 1, Σn(T)\Sigma_n(T) consists of several complete cosets of xˉ\bar{x} and one incomplete coset {xˉ,2xˉ,,pxˉ}\{\bar{x}, 2\bar{x}, \dots, p\bar{x}\}, with σ(T)=pxˉ\overline{\sigma(T)} = p\bar{x}.
Since Σn(T{y})\Sigma_n(T \cup \{y\}) contains only one more element, σ(T)+y=yˉ+pxˉ\overline{\sigma(T)+y} = \bar{y} + p\bar{x}, it follows that yˉ,yˉ+xˉ,,yˉ+(p1)xˉΣn(T)\bar{y}, \bar{y}+\bar{x}, \dots, \bar{y}+(p-1)\bar{x} \in \Sigma_n(T), but yˉ+pxˉΣn(T)\bar{y}+p\bar{x} \notin \Sigma_n(T). Therefore, yˉ\bar{y} cannot belong to a complete coset of xˉ\bar{x} in Σn(T)\Sigma_n(T), so it must be in {xˉ,2xˉ,,pxˉ}\{\bar{x}, 2\bar{x}, \dots, p\bar{x}\}. Consequently,
{yˉ,yˉ+xˉ,,yˉ+(p1)xˉ}{xˉ,2xˉ,,pxˉ}, \{\bar{y}, \bar{y} + \bar{x}, \dots, \bar{y} + (p-1)\bar{x}\} \subset \{\bar{x}, 2\bar{x}, \dots, p\bar{x}\},
which implies yˉ=xˉ\bar{y} = \bar{x}, i.e., x=yx = y. The claim is proved.
Thus, the remaining elements are all equal to some xx. Each time we add xx, Σn\Sigma_n gains exactly one new element, successively adding (p+1)xˉ,(p+2)xˉ,,(d1)xˉ(p+1)\bar{x}, (p+2)\bar{x}, \dots, (d-1)\bar{x}. In the final step, S=T1{x}S = T_1 \cup \{x\}, and the new element added to Σn\Sigma_n is (d1)xˉ=σ(T1)+x=σ(S)(d-1)\bar{x} = \overline{\sigma(T_1)+x} = \overline{\sigma(S)}, so xˉ=σ(S)\bar{x} = -\overline{\sigma(S)}.
Earlier, when we added 1 to {a1,a2,,ak}\{a_1, a_2, \dots, a_k\} to obtain SS, each addition also introduced exactly one new element to Σn\Sigma_n. Considering the last addition, S=T2{1}S = T_2 \cup \{1\}, we similarly deduce 1=σ(S)\overline{1} = -\overline{\sigma(S)}, so x=1x = 1. This means that in the previous process, the remaining elements were all 1. However, this is impossible because we had already taken {b1,,bi}\{b_1, \dots, b_i\} with bi>1b_i > 1, which includes all the 1's. This contradiction completes the proof. \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 and solution reproduced as published; topic and difficulty added by this site.