Skip to main content
OlympiadHQ

Browse · MathNet

Print

62nd Ukrainian National Mathematical Olympiad

Ukraine counting and probability

Problem

You are given distinct positive integers. A pair of integers is called elegant if their sum is for some positive integer . For each find the largest possible number of elegant pairs. (Oleksii Masalitin)
Solution
Answer:

We prove that there exist at most elegant pairs by induction by . The base case for is obvious, we prove the transition. Let the statement be proved for , let us prove it for numbers. Let us denote by the largest of them, suppose that the number is contained in some two elegant pairs. Then and are powers of two. Let us denote by a number such that . Then and are greater than , but less than , because , which contradicts the fact that the numbers are pairwise distinct. By induction, among other integers there are no more than elegant pairs, so there are no more than in total, which completes the proof of the transition.

It remains to show that there can be elegant pairs for any . Indeed, let us choose , , , , . Then the pairs are elegant for .

---

Alternative solution.

Alternative solution. Consider the following graph with vertices. Each number corresponds to a vertex, and two vertices are connected by an edge if their corresponding numbers form an elegant pair. Suppose that the graph in question has a cycle. Then let the numbers corresponding to the vertices of this cycle be . This means that the numbers are powers of two. Without loss of generality, let be the largest of these numbers. Let us denote by a number such that . Then and are greater than , but less than , because , which contradicts the fact that the numbers are pairwise distinct. Thus, this graph has no cycles, i.e. it has no more than edge.

It remains to show that there can be an elegant pair for any . Indeed, let us choose , , , , . Then the pairs are elegant for .
Final answer
n-1

Techniques

Induction / smoothingColoring schemes, extremal argumentsGraph Theory