Maths Olympiad Prep

Library / Round 3 /8 of 9

Round 3

Combinatorics Difficulty 6.9 National Olympiad Prove it Mongolia

Let p≥3p \ge 3 be a prime number. There are n=2pn = 2p integers on the blackboard. A student chooses one or more numbers and writes down their sum modulo nn. Suppose that the remainders 1,2,…,p−1,p+1,…,n−11, 2, \dots, p-1, p+1, \dots, n-1 appear the same number of times when the student writes down all 2n−12^n - 1 possible sums modulo nn. Prove that the sum of the numbers on the blackboard is divisible by pp.

(Proposed by Bayarmagnai Gombodorj)

Solution

Let a1,a2,…,ana_1, a_2, \dots, a_n denote the numbers on the blackboard and let X={1,2,…,n}X = \{1, 2, \dots, n\} be the index set.
The remainder corresponding to an index subset A⊆XA \subseteq X is the remainder of the sum ∑k∈Aak\sum_{k \in A} a_k modulo nn and we denote it by σ(A)\sigma(A). Here we assume σ(∅)=0\sigma(\emptyset) = 0. For 0≤k≤n−10 \le k \le n-1, let Sk=∣{A⊆X∣σ(A)≡k(modn)}∣S_k = |\{A \subseteq X \mid \sigma(A) \equiv k \pmod{n}\}| denote the number of index subsets that give the remainder kk. From the assumption, we have S1=S2=⋯=Sp−1=Sp+1=⋯=Sn−1S_1 = S_2 = \dots = S_{p-1} = S_{p+1} = \dots = S_{n-1}.

Now set N=σ(X)=a1+a2+⋯+an(modn)N = \sigma(X) = a_1 + a_2 + \dots + a_n \pmod{n} and consider the sum
T=∑A⊆Xσ(A)(modn). T = \sum_{A \subseteq X} \sigma(A) \pmod{n}.
Since each k∈Xk \in X belongs to exactly 2n−12^{n-1} subsets, we have T≡2n−1N(modn)T \equiv 2^{n-1}N \pmod{n}. On the other hand, we have
T≡∑k=0n−1kSk≡0S0+pSp+((n−1)n2−p)S1(modn). T \equiv \sum_{k=0}^{n-1} k S_k \equiv 0S_0 + pS_p + \left(\frac{(n-1)n}{2} - p\right) S_1 \pmod{n}.
Therefore, we get 2n−1N≡p(Sp+2(p−1)S1)(modn)2^{n-1}N \equiv p(S_p + 2(p-1)S_1) \pmod{n} and hence N≡0(modp)N \equiv 0 \pmod{p} since pp is odd.

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.