Skip to main content
OlympiadHQ

Browse · MathNet

Print

Brazil

Brazil counting and probability

Problem

We have four charged batteries, four uncharged batteries and a radio which needs two charged batteries to work. Suppose we don't know which batteries are charged and which ones are uncharged. Find the least number of attempts sufficient to make sure the radio will work. An attempt consists in putting two batteries in the radio and check if the radio works or not.
Solution
Let's generalize this problem to batteries, of them charged. The number of charged batteries needed is still two. One can see that the order of the attempts doesn't matter and that a set of attempts is always successful if and only if in every set of batteries there is an attempt with two of these batteries, that is, no set of batteries is "pairwise untested". Indeed, if there is a set of pairwise untested batteries, you can be unlucky enough: the working batteries might be these in . Conversely, if every set of batteries has two tested batteries, we will choose at some moment two charged batteries and the radio will work. So consider a graph in which each battery is a vertex and we connect two batteries iff we do not test these batteries. The number of attempts is the number of disconnected pairs, that is , where is the set of edges of . Since we want to minimize the number of attempts, we must maximize , that

is, we need to have the maximum number of edges. But the only restriction is that we don't have a set S of n pairwise untested batteries, which speaking "graph-wise", is the same as G not having a n-clique. But, by Túran's Theorem, the graph with the maximum number of edges without a n-clique is the most balanced -partite graph. In this case, the partition sets of vertices of must contain vertices (where we have twos). So the least number of attempts is the number of disconnected pairs of vertices, that is, .
Final answer
7

Techniques

Turán's theoremColoring schemes, extremal arguments