Browse · MathNet
PrintInternational Mathematical Olympiad
algebra
Problem
Let be the set of non-negative integers, and let be a bijection such that whenever , we have and . Let be the number of pairs of integers , with , such that is odd. Find the smallest and largest possible value of .
Solution
We defer the constructions to the end of the solution. Instead, we begin by characterizing all such functions , prove a formula and key property for such functions, and then solve the problem, providing constructions.
Characterization Suppose satisfies the given relation. The condition can be written more strongly as In particular, this means for any has the same sign for all and .
Call a non-zero vector a needle if for all and . It is not hard to see that needles and non-needles are both closed under addition, and thus under scalar division (whenever the quotient lives in ).
In addition, call a positive rational number a grade if the vector is a needle. (Since needles are closed under scalar multiples and quotients, this is well-defined.)
Claim. Grades are closed upwards. Proof. Consider positive rationals with a grade. Then: - is a needle - so is a needle, - so is a needle (as and is a needle). Thus ( ) is a needle, as wanted.
Claim. A grade exists. Proof. If no positive integer is a grade, then for all which is impossible. Similarly, there is an such that , thus is not a grade for some large . That means that small positive rational values are not grades, then there is a switch, and after that all values are grades. Call the place of that switch . Here is the infimum of the grades.
Claim (Key property). If then . Proof. If both and this is clear. Suppose and . Then is a grade. This gives . Suppose and . Then is not a grade. This gives .
From those observations we get the following claim. Claim. The function orders pairs based on the value of . If is rational, tiebreaking is done by larger - or -coordinate (depending on whether is a grade).
We can imagine this the following way: take a line with slope under the first quadrant of the plane. And we start to move this line upward (but it stays parallel to the original line). First it hits , so . And each time the line hits a point is the number of points hit before. If , it is possible that the line hits multiple points. Then those points are ordered the same way as their or coordinates, depending on whether is a grade.
We understood the behaviour of , now we need to focus on the region of . First, we can assume that is irrational. If we change it a little bit in the right direction, the behaviour and values of the function does not change in .
Claim. Proof.
From this claim we immediately get that ; now we show that those bounds are indeed sharp.
Remember that if is irrational then
Construction for 7500 Select . Claim. 1. for . 2. for . Proof. 1. . 2. for some integer .
From this claim, using the equality , we can prove that the region looks like the following: in the rows the remainders modulo 2 alternate, while the rows contain only odd numbers.
Construction for 2500 Select . Claim. 1. for . 2. for . Proof. 1. As above. 2. Similarly to the above: for some integer .
Similarly to the above, we can prove that mod 2 the region looks like the following: in the rows the remainder modulo 2 alternate, while the rows contain only even numbers.
Thus, the optimal bounds are .
Characterization Suppose satisfies the given relation. The condition can be written more strongly as In particular, this means for any has the same sign for all and .
Call a non-zero vector a needle if for all and . It is not hard to see that needles and non-needles are both closed under addition, and thus under scalar division (whenever the quotient lives in ).
In addition, call a positive rational number a grade if the vector is a needle. (Since needles are closed under scalar multiples and quotients, this is well-defined.)
Claim. Grades are closed upwards. Proof. Consider positive rationals with a grade. Then: - is a needle - so is a needle, - so is a needle (as and is a needle). Thus ( ) is a needle, as wanted.
Claim. A grade exists. Proof. If no positive integer is a grade, then for all which is impossible. Similarly, there is an such that , thus is not a grade for some large . That means that small positive rational values are not grades, then there is a switch, and after that all values are grades. Call the place of that switch . Here is the infimum of the grades.
Claim (Key property). If then . Proof. If both and this is clear. Suppose and . Then is a grade. This gives . Suppose and . Then is not a grade. This gives .
From those observations we get the following claim. Claim. The function orders pairs based on the value of . If is rational, tiebreaking is done by larger - or -coordinate (depending on whether is a grade).
We can imagine this the following way: take a line with slope under the first quadrant of the plane. And we start to move this line upward (but it stays parallel to the original line). First it hits , so . And each time the line hits a point is the number of points hit before. If , it is possible that the line hits multiple points. Then those points are ordered the same way as their or coordinates, depending on whether is a grade.
We understood the behaviour of , now we need to focus on the region of . First, we can assume that is irrational. If we change it a little bit in the right direction, the behaviour and values of the function does not change in .
Claim. Proof.
From this claim we immediately get that ; now we show that those bounds are indeed sharp.
Remember that if is irrational then
Construction for 7500 Select . Claim. 1. for . 2. for . Proof. 1. . 2. for some integer .
From this claim, using the equality , we can prove that the region looks like the following: in the rows the remainders modulo 2 alternate, while the rows contain only odd numbers.
Construction for 2500 Select . Claim. 1. for . 2. for . Proof. 1. As above. 2. Similarly to the above: for some integer .
Similarly to the above, we can prove that mod 2 the region looks like the following: in the rows the remainder modulo 2 alternate, while the rows contain only even numbers.
Thus, the optimal bounds are .
Final answer
smallest 2500, largest 7500
Techniques
Injectivity / surjectivityCounting two waysColoring schemes, extremal arguments