Browse · MathNet
Print29-th Balkan Mathematical Olympiad
North Macedonia algebra
Problem
Let be the set of all positive integers. Find all functions such that , and divides for all distinct positive integers and .
Solution
There are three functions: the constant functions , and the identity function . These functions clearly satisfy the conditions in the hypothesis. Let us prove that there are only ones.
Consider such a function and suppose that it has a fixed point , that is . Then , , ... are all fixed points of , hence the function has a strictly increasing sequence of fixed points. For a positive integer , divides for every . Also divides , so it divides . This is possible only if , hence in this case we get .
Now suppose that has no fixed points greater than . Let be a prime and notice that by Wilson's Theorem we have . Therefore divides . But divides , hence divides Clearly we have or . As , the fact that divides implies that . It is easy to check, again by Wilson's Theorem, that does not divide and , hence we deduce that . On the other hand, divides . Thus either or . As , the last case is excluded, since the function has no fixed points greater than . It follows and this property holds for all primes .
Taking any positive integer, we deduce that divides for all primes . Thus , hence is the constant function or .
---
Alternative solution.
Note first that if , then for all . If for infinitely many , then has infinitely many divisors, hence for all . On the other hand, if for some , then each term of the sequence , which is recursively defined by . Hence if , then for all .
We may assume that . Since , and , . We have . This together with implies that . Let , then and , i.e. . Hence we conclude that for all .
If is not constant, then there exist positive integers with . Let . If , then . This is a contradiction as and .
Therefore the functions satisfying the conditions are .
Consider such a function and suppose that it has a fixed point , that is . Then , , ... are all fixed points of , hence the function has a strictly increasing sequence of fixed points. For a positive integer , divides for every . Also divides , so it divides . This is possible only if , hence in this case we get .
Now suppose that has no fixed points greater than . Let be a prime and notice that by Wilson's Theorem we have . Therefore divides . But divides , hence divides Clearly we have or . As , the fact that divides implies that . It is easy to check, again by Wilson's Theorem, that does not divide and , hence we deduce that . On the other hand, divides . Thus either or . As , the last case is excluded, since the function has no fixed points greater than . It follows and this property holds for all primes .
Taking any positive integer, we deduce that divides for all primes . Thus , hence is the constant function or .
---
Alternative solution.
Note first that if , then for all . If for infinitely many , then has infinitely many divisors, hence for all . On the other hand, if for some , then each term of the sequence , which is recursively defined by . Hence if , then for all .
We may assume that . Since , and , . We have . This together with implies that . Let , then and , i.e. . Hence we conclude that for all .
If is not constant, then there exist positive integers with . Let . If , then . This is a contradiction as and .
Therefore the functions satisfying the conditions are .
Final answer
The identity function, the constant function equal to one, and the constant function equal to two.
Techniques
Injectivity / surjectivityFermat / Euler / Wilson theoremsFactorization techniques