\quad\mathbb{Z}^{+}f: \mathbb{Z}^{+} \rightarrow \mathbb{Z}^{+}$ such that the following conditions both hold:
(i) for every positive integer ,
(ii) divides whenever and are different positive integers.
Solution
There are three such functions: the constant functions 1, 2 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 2. 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 2. 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 1 or 2.