Skip to main content
OlympiadHQ

Browse · MathNet

Print

IMO2024 Shortlisted Problems

2024 algebra

Problem

Let be the set of rational numbers. Let be a function such that the following property holds: for all ,

Determine the maximum possible number of elements of .
Solution
Solution 1. We begin by providing an example of a function for which there are two values of . We take the function , where denotes the floor of (that is, the largest integer less than or equal to ) and denotes the fractional part of . First, we show that satisfies . Given , we have If , then we have that the fractional part of is and the floor is , so . Likewise, if , then . Finally, if , then is an integer. In all cases, the relation is satisfied. Finally, we observe that if is an integer then , and if is not an integer then , so there are two values for as required. Now, we prove that there cannot be more than two values of . tells us that , or in other words, for all , We begin with the following lemma. Lemma 1. is a bijection, and satisfies Proof. We first prove that is injective. Suppose that ; then tells us that . Without loss of generality, suppose that . But , so by (1). Therefore, , as required. Now, (1) with tells us that and so by injectivity . Applying tells us that , so either or which implies that by injectivity. Either way, we deduce that , or by replacing with . Finally, note that bijectivity follows immediately from (2). Since is bijective, it has an inverse, which we denote . Rearranging (2) (after replacing with gives that . We have . Suppose and , where are both nonzero. Define and ; by definition, we have Putting in gives , and putting in gives . These are not equal since , and may have only one incoming and outgoing arrow because is a bijection, so we must have either or the same with the arrows reversed. Swapping and if necessary, we may assume without loss of generality that this is the correct direction for the arrows. Also, we have by Lemma 1. Putting in gives , and so must be either or . This means must be either 0 or , and this contradicts our assumption about and .

Solution 2. We again start with Lemma 1, and note as in the proof of that lemma. gives , and using (2) this becomes . In other words, either or . In the latter case, we deduce that Thus, is equal to either or . Replacing with , we deduce that . Now, we prove the following claim. Claim. For any and , we have that either or . In particular, if then . Proof. We first prove that if then . Suppose that . Then and so for any . Applying this repeatedly, we deduce that for any . Applying this with and and adding gives , so , and in particular the claim is true whenever . Now, select and such that , and observe that we must have . Observe that for any we have that . Let be the number of with such that this difference equals . We deduce that for any , Since is nonzero, this is a nonconstant linear function of . However, there are only two possible values for , so there must be at most two possible values for as varies. And since , those two values must differ by 1 (if there are two values). Now, we have Subtracting these (using the fact that ) we obtain where the last line follows from the fact that is nonzero. It immediately follows that there can only be one nonzero number of the form up to sign; to see why, if and are both nonzero, then for some we have . But Finally, suppose that for some we have and for some nonzero . So we have which rearranges to become . Each of the bracketed terms must be equal to either or . However, they cannot be equal since is nonzero, so . This contradicts the assertion that for all .

Solution 3. As in Solution 1, we start by establishing Lemma 1 as above, and write for the inverse of , and . We now prove the following. Lemma 2. If , then . Proof. Assume and are such that . Applying gives , and applying gives . Observe that By assumption, , and so . Since is bijective, this means that these two values must be and in some order, and so must be their difference up to sign, which is either or . Claim. If and are rational numbers such that and is an integer, then . Proof. If and , then the lemma tells us that , which contradicts our assumptions. Therefore, whenever . A simple induction then gives that for any positive integer , and for negative as . The claim follows immediately. Lemma 3. There cannot be both positive and negative elements in the range of . Proof. Suppose that and . Let be the set of numbers of the form for integers . We first show that has infinitely many elements. Indeed, suppose is finite, and let maximise and maximise . Then , and or . In the first case and in the second case ; in either case we get a contradiction. Now, we show that there must exist some nonzero rational number with . Indeed, suppose first that for all . Then for all , and so takes no nonzero value. Otherwise, there is some with , and so (1) yields that for . Noting that from Lemma 1 tells us that , as required. Now, there must exist integers and such that and integers and such that . The claim above gives that the value of depends only on the values of and , so can only take finitely many values. Finally, suppose that and where have the same sign. Assume (the other case is similar) and assume without loss of generality. gives , and gives . is nonzero, so and must be and in some order, and since must be nonnegative, we have Then, tells us that , so , contradicting either or .

Answer: 2 is the maximum number of elements.
Final answer
2

Techniques

Functional EquationsInjectivity / surjectivity