Browse · MathNet
PrintIMO 2006 Shortlisted Problems
2006 number theory
Problem
Let be relatively prime positive integers. Define the weight of an integer , denoted by , to be the minimal possible value of taken over all pairs of integers and such that An integer is called a local champion if and . Find all local champions and determine their number.
Solution
Call the pair of integers a representation of if and has the smallest possible value, i.e. . We characterise the local champions by the following three observations.
Lemma 1. If a representation of a local champion then .
Proof. Suppose indirectly that and and consider the values and . All representations of the numbers and in the form can be written as where is an arbitrary integer. Since is minimal, we have for all . On the other hand, , so there exists a for which Then Comparing the first and the third expressions, we find implying . Comparing the second and fourth expressions, we get , therefore ; this is a contradiction. If then we can switch to and .
From this point, write instead of and consider only those cases where and are nonzero and have the same sign. By Lemma 1, there is no loss of generality in doing so.
Lemma 2. Let where is minimal and have the same sign. The number is a local champion if and only if and .
Proof. Without loss of generality we may assume . The numbers and can be written as and trivially and in all cases. Now assume that is a local champion and consider . Since , there exists an integer such that This inequality cannot hold if , therefore . We prove that we can choose . Consider the function . This is a convex function and we have and . By Jensen's inequality, . But is an integer. Therefore and Knowing , we also have Combining the two inequalities yields which is equivalent to . Considering , we obtain similarly that . Now and , therefore we have Hence . To prove the opposite direction, assume and . Since , we also have . Then and therefore is a local champion indeed.
Lemma 3. Let and assume that and have the same sign, and . Then .
Proof. By definition . If then obviously . If then Therefore indeed.
Lemmas 1, 2 and 3 together yield that the set of local champions is Denote by and the two sets generated by the expressions and , respectively. It is easy to see that both sets are arithmetic progressions of length , with difference . If and are odd, then , because and is equivalent to . In this case there exist local champions. If and have opposite parities then the answer is different. For any and , and The number is odd and relatively prime to , therefore the elements of and belong to two different residue classes modulo . Hence, the set is the union of two disjoint arithmetic progressions and the number of all local champions is . So the number of local champions is if both and are odd and otherwise.
Lemma 1. If a representation of a local champion then .
Proof. Suppose indirectly that and and consider the values and . All representations of the numbers and in the form can be written as where is an arbitrary integer. Since is minimal, we have for all . On the other hand, , so there exists a for which Then Comparing the first and the third expressions, we find implying . Comparing the second and fourth expressions, we get , therefore ; this is a contradiction. If then we can switch to and .
From this point, write instead of and consider only those cases where and are nonzero and have the same sign. By Lemma 1, there is no loss of generality in doing so.
Lemma 2. Let where is minimal and have the same sign. The number is a local champion if and only if and .
Proof. Without loss of generality we may assume . The numbers and can be written as and trivially and in all cases. Now assume that is a local champion and consider . Since , there exists an integer such that This inequality cannot hold if , therefore . We prove that we can choose . Consider the function . This is a convex function and we have and . By Jensen's inequality, . But is an integer. Therefore and Knowing , we also have Combining the two inequalities yields which is equivalent to . Considering , we obtain similarly that . Now and , therefore we have Hence . To prove the opposite direction, assume and . Since , we also have . Then and therefore is a local champion indeed.
Lemma 3. Let and assume that and have the same sign, and . Then .
Proof. By definition . If then obviously . If then Therefore indeed.
Lemmas 1, 2 and 3 together yield that the set of local champions is Denote by and the two sets generated by the expressions and , respectively. It is easy to see that both sets are arithmetic progressions of length , with difference . If and are odd, then , because and is equivalent to . In this case there exist local champions. If and have opposite parities then the answer is different. For any and , and The number is odd and relatively prime to , therefore the elements of and belong to two different residue classes modulo . Hence, the set is the union of two disjoint arithmetic progressions and the number of all local champions is . So the number of local champions is if both and are odd and otherwise.
Final answer
All local champions are exactly the integers of the form ±(a x − b y) with positive integers x, y satisfying x < b and x + y = floor((a + b) / 2). The total number of local champions is b − 1 if both a and b are odd, and 2(b − 1) otherwise.
Techniques
Techniques: modulo, size analysis, order analysis, inequalitiesJensen / smoothing