Maths Olympiad Prep

Track / Stage 7 / 118 of 300 #1518 of 1964

Problem 1518

National olympiad second round; IMO P1/P4
Combinatorics Difficulty 7.2 Prove it

There are NN red cards and NN blue cards. Each card has a positive integer between 11 and NN (inclusive) written on it. Prove that we can choose a (non-empty) subset of the red cards and a (non-empty) subset of the blue cards, so that the sum of the numbers on the chosen red cards equals the sum of the numbers on the chosen blue cards.

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Official solution

1. Define the labels and cumulative sums:
Let r1,r2,,rN r_1, r_2, \ldots, r_N be the labels of the red cards and b1,b2,,bN b_1, b_2, \ldots, b_N be the labels of the blue cards. Define the cumulative sums:
xi=j=1irjfor1iN x_i = \sum_{j=1}^i r_j \quad \text{for} \quad 1 \le i \le N
yi=j=1ibjfor1iN y_i = \sum_{j=1}^i b_j \quad \text{for} \quad 1 \le i \le N

2. **Construct the set of points S S :**
Consider the set of points S={0,1,2,,N}×{0,1,2,,N} S = \{0, 1, 2, \ldots, N\} \times \{0, 1, 2, \ldots, N\} . For each point (a,b)S(a, b) \in S, label it with xa+yb x_a + y_b .

3. Apply the Pigeonhole Principle:
We claim that some two points in S S have the same label. To show this, we will use the Pigeonhole Principle.

4. **Define the sets Si S_i :**
For each 0iN 0 \le i \le N , let Si S_i be the set of points (a,b)S(a, b) \in S such that max(aN,b)=i \max(|a-N|, |b|) = i . This means Si S_i contains points on the boundary of the square grid at distance i i from the point (N,0)(N, 0).

5. Label the points and apply discrete continuity:
Let \ell be the label of the point (N,0)(N, 0), which is xN+y0=xN x_N + y_0 = x_N . For every 0iN 0 \le i \le N , note that since (Ni,0)(N-i, 0) and (N,i)(N, i) are both in Si S_i , by "discrete continuity" there must exist some (a,b)Si(a, b) \in S_i such that the label of (a,b)(a, b) is in the interval [,+N)[\ell, \ell + N).

6. Count the distinct labels:
Since the Si S_i 's are mutually disjoint and there are N+1 N+1 of them, we now know the existence of N+1 N+1 distinct points in S S which all have labels in [,+N)[\ell, \ell+N). By the Pigeonhole Principle, there must be at least two points in S S with the same label.

7. Identify the points with the same label:
Hence, we can pick (a,b),(c,d)S(a, b), (c, d) \in S such that a<c a < c and d<b d < b and (a,b)(a, b) and (c,d)(c, d) have the same label.

8. Derive the subset sums:
By the definition of our table, we have:
xc+yd=xa+yb x_c + y_d = x_a + y_b
Rearranging, we get:
xcxa=ybyd x_c - x_a = y_b - y_d
This implies that the sum of the numbers on the chosen red cards (from a+1 a+1 to c c ) equals the sum of the numbers on the chosen blue cards (from d+1 d+1 to b b ).

Therefore, we have shown that it is possible to choose a (non-empty) subset of the red cards and a (non-empty) subset of the blue cards such that the sum of the numbers on the chosen red cards equals the sum of the numbers on the chosen blue cards.

\blacksquare

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