Maths Olympiad Prep

Library / /23 of 30

Combinatorics Difficulty 6.6 National olympiad Prove it Ireland

Each of 117117 spies, operating in a certain country, is to assign himself to one of three missions, such that every mission has at least one spy assigned. At this point, no two spies can communicate. Headquarters will then sequentially issue a number of passwords, each of which allows a single pair of spies to communicate. Passwords may only be issued to a pair of spies who share the same mission and who cannot already communicate directly. However, apart from these rules, headquarters may assign passwords in any fashion.

A mission is said to be networked if any two spies on that mission can communicate (possibly through other spies). Let nn denote the number of passwords issued for which, regardless of how headquarters assigns these passwords, the spies can be certain that at least one mission will be networked. How should the spies choose their missions in order to minimize nn?

Solution

We represent the given information by a graph the vertices of which correspond to the 117117 spies. Two vertices are connected iff the corresponding spies share a password which allows them to communicate directly. We need to ensure that at least one of the sub-graphs formed by spies sharing the same mission is connected.

To find the number of edges needed to ensure that a graph with a2a \ge 2 vertices is connected, no matter how the edges are placed, we first observe that the complete graph with a1a-1 vertices has (a1)(a2)2\frac{(a-1)(a-2)}{2} edges. We next prove that it is sufficient to have
(a1)(a2)2+1=a23a+42 \frac{(a-1)(a-2)}{2} + 1 = \frac{a^2 - 3a + 4}{2}
edges. To see this, assume that the graph is not connected. Then there exist two sub-graphs, not connected to each other, one with x1x \ge 1 and the other with ax1a-x \ge 1 vertices. The number of edges in such a graph is at most
(ax)(ax1)2+x(x1)2=2x22ax+a2a2==a23a+22(ax1)(x1)a23a+22=(a1)(a2)2 \begin{aligned} \frac{(a-x)(a-x-1)}{2} + \frac{x(x-1)}{2} &= \frac{2x^2 - 2ax + a^2 - a}{2} = \\ &= \frac{a^2 - 3a + 2}{2} - (a-x-1)(x-1) \le \frac{a^2 - 3a + 2}{2} = \frac{(a-1)(a-2)}{2} \end{aligned}

If the sizes of the three missions are aa, bb and cc, the above shows that issuing
n=a23a+22+b23b+22+c23c+22+1 n = \frac{a^2 - 3a + 2}{2} + \frac{b^2 - 3b + 2}{2} + \frac{c^2 - 3c + 2}{2} + 1
passwords, ensures that at least one mission is networked. Finally, we need to minimise 2n=a2+b2+c23(a+b+c)+82n = a^2 + b^2 + c^2 - 3(a+b+c) + 8 subject to the condition a+b+c=117a+b+c = 117. Because
3(a2+b2+c2)(a+b+c)2=2(a2+b2+c2abbcca)==(ab)2+(bc)2+(ca)20, \begin{aligned} 3(a^2 + b^2 + c^2) - (a+b+c)^2 &= 2(a^2 + b^2 + c^2 - ab - bc - ca) = \\ &= (a-b)^2 + (b-c)^2 + (c-a)^2 \ge 0, \end{aligned}
we obtain
2n(a+b+c)233(a+b+c)+8=117233117+8=4220, 2n \ge \frac{(a+b+c)^2}{3} - 3(a+b+c) + 8 = \frac{117^2}{3} - 3 \cdot 117 + 8 = 4220,
with equality iff a=b=c=39a=b=c=39. This shows that the minimum number of passwords needed to ensure that at least one mission is networked is n=2110n=2110. This number is sufficient iff the three missions are of equal size.

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 and solution reproduced as published; topic and difficulty added by this site.