Skip to main content
OlympiadHQ

Browse · MathNet

Print

62nd Ukrainian National Mathematical Olympiad

Ukraine number theory

Problem

You are given distinct positive integers. For each pair of these numbers, consider the difference . For each of these differences, Vlada writes down the maximum power of two by which this difference is divisible. What is the largest possible number of distinct numbers that Vlada could write? (Oleksii Masalitin)
Solution
We will prove that there are at most different degrees with induction by . The base case for is obvious, let's prove the transition. Let the statement be proved for , let us prove it for numbers. Suppose that all numbers are divisible by the same power of : . If , then we divide these numbers by , it is clear that the degree of occurrence of two in all differences has decreased by , so the number of distinct among them has not changed. If all the numbers are odd, then we can add 1, then none of the differences will change, and the numbers will all become even. We will repeat this operation. It is clear that the only odd number that does not decrease after the operations of addition 1 and division by the maximum degree of occurrence of two is 1. Since there are more than one number, the sum of these numbers will decrease after each pair of operations, so sooner or later we will get a set of numbers that are divisible by different degrees of twos.

Let's divide the numbers into groups , according to the degree of occurrence of two (the degrees are equal to ). It is clear that the difference for () is divisible by , therefore, among the differences between different groups there are only different degrees. For each of these groups, the induction assumption can be applied, so the number of different powers of the differences of numbers from does not exceed . Thus, the number of different degrees of occurrence is no more than

It remains to show that different degrees are possible for any . Indeed, let us choose . Then, the pairs for have different degrees.

An alternative solution. We prove that there are at most different degrees of occurrence. Indeed, let there be pairs in which the degrees of occurrence of 2 in the difference of the pair's numbers are pairwise different. Then consider the following graph with vertices. Each number is assigned a vertex, and two vertices are connected by an edge if their corresponding numbers form one of the considered pairs. It is clear that the total number of edges , so the graph in question has a cycle. Then let the numbers corresponding to the vertices of this cycle be . Then the degrees of occurrence of the two in the difference are pairwise different. Without loss of generality, let the degree of occurrence of the twos, , in the number be the smallest of them. Then all other differences are divisible by , so , so is divisible by , which contradicts the assumption. Example is the same as in previous solution.
Final answer
n - 1

Techniques

Factorization techniquesInduction / smoothingColoring schemes, extremal arguments