Skip to main content
OlympiadHQ

Browse · MathNet

Print

International Mathematical Olympiad Shortlisted Problems

algebra

Problem

Determine all functions satisfying for all , , and . (Here, denotes the set of positive integers.)
Solution
Answer. There are three kinds of such functions, which are: all constant functions, the floor function, and the ceiling function.

Solution 1. I. We start by verifying that these functions do indeed satisfy (1). This is clear for all constant functions. Now consider any triple and set This means that is an integer and . It follows that holds as well, and thus we have meaning that the floor function does indeed satisfy (1). One can check similarly that the ceiling function has the same property.

II. Let us now suppose conversely that the function satisfies (1) for all . According to the behaviour of the restriction of to the integers we distinguish two cases.

Case 1: There is some such that . Write and let and denote the sign and absolute value of , respectively. Given any integer , we may plug the triple ( ) into ( 1 ), thus getting . Starting with and using induction in both directions, we deduce from this that the equation holds for all integers . Now any rational number can be written in the form with , and substituting into (1) we get . Thus is the constant function whose value is always .

Case 2: One has for all integers . Note that now the special case of (1) takes a particularly simple form, namely Defining we proceed in three steps.

Step A. We show that . If , we may plug into (1), obtaining . In the contrary case we argue similarly using the triple .

Step B. We show that for all rational numbers with . Assume that this fails and pick some rational number with minimal such that . Obviously, and . If is even, then has to be odd and we can substitute into (1), which yields Recall that . Thus, in both cases and , the left-hand part of (3) equals either by the minimality of , or by . A contradiction.

Thus has to be odd, so for some . Applying (1) to we get Since and are coprime, there exist integers and such that . Note that we actually have , since the right hand side is not a multiple of . If is negative, then we have , which is absurd. Similarly, leads to , which is likewise impossible; so we must have .

We finally substitute into (1) and use (4) to learn But as above one may see that the left hand side has to equal due to the minimality of . This contradiction concludes our step B.

Step . Now notice that if , then holds for all rational with and hence by (2) this even holds for all rational numbers . Similarly, if , then holds for all . Thereby the problem is solved.

Comment 1. An alternative treatment of Steps B and C from the second case, due to the proposer, proceeds as follows. Let square brackets indicate the floor function in case and the ceiling function if . We are to prove that holds for all , and because of Step A and (2) we already know this in case . Applying (1) to ( ) we get and by the previous observation this yields An easy induction now shows Now suppose first that is not an integer but can be written in the form with and both being odd. Let denote the multiplicative order of 2 modulo and let be any large integer. Plugging into (6) and using (2) we get Since is not an integer, the square bracket function is continuous at ; hence as tends to infinity the above fomula gives . To complete the argument we just need to observe that if some satisfies , then (5) yields .

---

Alternative solution.

Here we just give another argument for the second case of the above solution. Again we use equation (2). It follows that the set of all zeros of contains for each exactly one term from the infinite sequence .

Next we claim that To see this we just plug into (1), thus getting .

From this we get that Indeed, if we write and with , then and (7) tells us Essentially the same argument also establishes that From (8) and (9) we get and hence the real number exists and satisfies .

Let us assume that we actually had . Note that if by (8), and if by (9) and (2). Let denote the unique positive integer satisfying . The first of these two inequalities entails , and thus there is a rational number . Setting and substituting into ( 1 ) we learn Since and , this simplifies to But, as , this is only possible if and . From this, however, we get the contradiction Thus our assumption has turned out to be wrong and it follows that . If , then we have , whence , which in turn yields for all due to (2). Similarly, entails and for all . Thereby the solution is complete.
Final answer
All constant functions, the floor function, and the ceiling function.

Techniques

Functional EquationsMultiplicative order