Maths Olympiad Prep

Library / NMO Selection Tests for the Junior Balkan Mathematical Olympiad - Third Selection Test /3 of 3

NMO Selection Tests for the Junior Balkan Mathematical Olympiad - Third Selection Test

Combinatorics Difficulty 6.4 National Olympiad Prove it Romania

Let n∈Nn \in \mathbb{N}, n≥2n \ge 2, and three sets of real numbers A,B,CA, B, C, pairwise disjoint, each of them having nn elements.
Let aa be the number of triples (x,y,z)∈A×B×C(x, y, z) \in A \times B \times C for which x<y<zx < y < z and bb be the number of triples (x,y,z)∈A×B×C(x, y, z) \in A \times B \times C for which x>y>zx > y > z. Prove that a−ba - b is divisible by nn.

Solution

Consider y∈By \in B, arbitrarily chosen. Denote by AyA_y the number of pairs (x,z)∈A×C(x, z) \in A \times C for which x<y<zx < y < z, and by ByB_y the number of pairs (x,z)∈A×C(x, z) \in A \times C for which x>y>zx > y > z.

Let A={a1<a2<⋯<an}A = \{a_1 < a_2 < \dots < a_n\} and C={c1<c2<⋯<cn}C = \{c_1 < c_2 < \dots < c_n\}.
On the real axis, yy separates the numbers a1,a2,…,ana_1, a_2, \dots, a_n into kk numbers smaller than yy and n−kn-k numbers greater than yy, where kk is some number from {0,1,2,…,n}\{0, 1, 2, \dots, n\}. Likewise, c1,c2,…,cnc_1, c_2, \dots, c_n are separated by yy into pp numbers smaller than yy and n−pn-p numbers greater than yy, where p∈{0,1,2,…,n}p \in \{0, 1, 2, \dots, n\}. It follows that Ay=k(n−p)A_y = k(n-p) and By=p(n−k)B_y = p(n-k), so Ay−By=n(k−p)A_y - B_y = n(k-p).

Summing over all y∈By \in B, we get a−b=∑y∈B(Ay−By)=n∑y∈B(k−p)a - b = \sum_{y \in B} (A_y - B_y) = n \sum_{y \in B} (k-p). Since kk and pp depend on yy, but for each yy the difference k−pk-p is an integer, and the sum is multiplied by nn, it follows that a−ba - b is divisible by nn.

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.