Maths Olympiad Prep

Library / /9 of 10

Combinatorics Difficulty 6.9 National Olympiad Prove it Mongolia

Let p3p \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,,p1,p+1,,n11, 2, \dots, p-1, p+1, \dots, n-1 appear the same number of times when the student writes down all 2n12^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 AXA \subseteq X is the remainder of the sum kAak\sum_{k \in A} a_k modulo nn and we denote it by σ(A)\sigma(A). Here we assume σ()=0\sigma(\emptyset) = 0. For 0kn10 \le k \le n-1, let Sk={AXσ(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==Sp1=Sp+1==Sn1S_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=AXσ(A)(modn). T = \sum_{A \subseteq X} \sigma(A) \pmod{n}.
Since each kXk \in X belongs to exactly 2n12^{n-1} subsets, we have T2n1N(modn)T \equiv 2^{n-1}N \pmod{n}. On the other hand, we have
Tk=0n1kSk0S0+pSp+((n1)n2p)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 2n1Np(Sp+2(p1)S1)(modn)2^{n-1}N \equiv p(S_p + 2(p-1)S_1) \pmod{n} and hence N0(modp)N \equiv 0 \pmod{p} since pp is odd.

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.