Maths Olympiad Prep

Track / Stage 7 / 74 of 300 #1474 of 1964

Problem 1474

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

I'll post some nice combinatorics problems here, taken from the wonderful training book "Les olympiades de mathmatiques" (in French) written by Tarik Belhaj Soulami.
Here goes the first one:

Let I\mathbb{I} be a non-empty subset of Z\mathbb{Z} and let ff and gg be two functions defined on I\mathbb{I}. Let mm be the number of pairs (x,  y)(x,\;y) for which f(x)=g(y)f(x) = g(y), let nn be the number of pairs (x,  y)(x,\;y) for which f(x)=f(y)f(x) = f(y) and let kk be the number of pairs (x,  y)(x,\;y) for which g(x)=g(y)g(x) = g(y). Show that 2mn+k.2m \leq n + k.

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 necessary quantities:
- Let I \mathbb{I} be a non-empty subset of Z \mathbb{Z} .
- Let f f and g g be two functions defined on I \mathbb{I} .
- Define m m as the number of pairs (x,y) (x, y) for which f(x)=g(y) f(x) = g(y) .
- Define n n as the number of pairs (x,y) (x, y) for which f(x)=f(y) f(x) = f(y) .
- Define k k as the number of pairs (x,y) (x, y) for which g(x)=g(y) g(x) = g(y) .

2. Introduce the notation for counting values:
- For each t t , let nf(t) n_f(t) be the number of values of x x for which f(x)=t f(x) = t .
- Similarly, let ng(t) n_g(t) be the number of values of y y for which g(y)=t g(y) = t .

3. **Express m m , n n , and k k in terms of these counts:**
- m=tnf(t)ng(t) m = \sum_t n_f(t) n_g(t)
- n=tnf(t)2 n = \sum_t n_f(t)^2
- k=tng(t)2 k = \sum_t n_g(t)^2

4. Use the Cauchy-Schwarz inequality:
- The Cauchy-Schwarz inequality states that for any sequences of real numbers ai a_i and bi b_i ,
(iaibi)2(iai2)(ibi2) \left( \sum_i a_i b_i \right)^2 \leq \left( \sum_i a_i^2 \right) \left( \sum_i b_i^2 \right)
- In our case, let ai=nf(t) a_i = n_f(t) and bi=ng(t) b_i = n_g(t) . Then,
(tnf(t)ng(t))2(tnf(t)2)(tng(t)2) \left( \sum_t n_f(t) n_g(t) \right)^2 \leq \left( \sum_t n_f(t)^2 \right) \left( \sum_t n_g(t)^2 \right)

5. Apply the inequality to our problem:
- Substituting the expressions for m m , n n , and k k , we get:
m2nk m^2 \leq n \cdot k
- Taking the square root of both sides, we obtain:
mnk m \leq \sqrt{n \cdot k}

6. Strengthen the inequality:
- Since nkn+k2 \sqrt{n \cdot k} \leq \frac{n + k}{2} (by the arithmetic mean-geometric mean inequality), we have:
mn+k2 m \leq \frac{n + k}{2}
- Multiplying both sides by 2, we get:
2mn+k 2m \leq n + k

Thus, we have shown that 2mn+k 2m \leq n + k .

\blacksquare

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