Skip to main content
OlympiadHQ

Browse · MathNet

Print

International Mathematical Olympiad Shortlisted Problems

algebra

Problem

Let be the set of all nonnegative integers. Find all the functions satisfying the relation for all .
Solution
Answer. There are two such functions: for all , and Throughout all the solutions, we write to abbreviate the th iteration of function , so is the identity function, and for .

Solution 1. To start, we get from () that thus I. Let us denote by the range of ; note that since is the identity function. Obviously, . Next, from (2) we get that if then also . This implies that - and hence - is finite. In particular, is unbounded. Assume that for some distinct and . Then from we obtain ; by an easy induction we then get that for every . So the function is periodic with period for , and thus should be bounded, which is false. So, is injective. II. Denote now ; all these sets are finite for . On the other hand, by the injectivity we have . By the injectivity again, implements a bijection between and , thus ; denote this common cardinality by . If then for some , thus from () we get which is impossible. Therefore , thus . Next, let us describe the elements of . We claim that each such element satisfies at least one of three conditions (i) , (ii) , and (iii) . Otherwise , and there exists some such that ; but then , so . This yields or . Therefore , and the inequality above comes to equality. So we have , , and for some , and each one of the three options (i), (ii), and (iii) should be realized exactly once, which means that III. From (3), we get (the case is impossible). If then we have which is absurd. Therefore Next, again from (3) we have . Let us consider these two cases separately. Case 1. Assume that , then . Also from (3) we get . Now, let us show that by induction on ; the base cases are established. Next, if then the induction hypothesis implies establishing the step. In this case we have obtained the first of two answers; checking that is satisfies () is straightforward. Case 2. Assume now that ; then by (3) we get . By (4) we get , then , hence and by (4). To summarize, Now let us prove by induction on that (1) holds for all with and for all with . The base case is established above. For the step, assume that . From ( ) we get . Next, by (2) we have Then by the induction hypothesis together with () we successively obtain thus finishing the induction step. Finally, it is straightforward to check that the constructed function works:

Solution 2. I. For convenience, let us introduce the function . Substituting instead of into () we obtain Applying to both parts of () and using (5) we get Thus, if then an easy induction on shows that This relation implies that both and are injective: if, say, then . Next, since for every , we have . Thus from (7) again we obtain and for all . II. Next, application of and to (7) yields In particular, this means that if then . Conversely, if then we get . Thus, Now, let us introduce the function . Set Using (8), we get that for every complete residue system modulo we also have By (9), we get that and are complete residue systems modulo for all . Thus we have and similarly Therefore , or . Since , we get . Thus, in view of (8) it is sufficient to determine the values of on the numbers . III. Let . Then . Now, if , then we would have which is impossible. Thus . If then we have which is impossible since for all . If then and hence which is also impossible. Thus and hence . Next, if for some integer , then which is impossible. Thus, since is a complete residue system modulo 4 , we get and hence , leading to or . So, we obtain iether thus arriving to the two functions listed in the answer. Finally, one can check that these two function work as in Solution 1. One may simplify the checking by noticing that (8) allows us to reduce it to .
Final answer
Two functions: (1) f(n) = n + 1 for all nonnegative integers n; (2) the piecewise function by residue mod four: f(n) = n + 1 if n is congruent to 0 or 2 modulo 4, f(n) = n + 5 if n is congruent to 1 modulo 4, and f(n) = n − 3 if n is congruent to 3 modulo 4.

Techniques

Injectivity / surjectivityFunctional equationsModular ArithmeticInduction / smoothing