## A
Find all surjective functions such that for all positive integers and , exactly one of the following equations is true:
Remarks: denotes the set of all positive integers. A function is said to be surjective if for every there exists such that .
## A
Find all surjective functions such that for all positive integers and , exactly one of the following equations is true:
Remarks: denotes the set of all positive integers. A function is said to be surjective if for every there exists such that .
Solution 1. Each positive integer can be uniquely written as where and is odd. We will show that the only function satisfying the conditions is for all and all odd .
Assume that . Since is surjective, there exists such that . Since , we get , and inductively we get for each . However, this contradicts the surjectivity of .
Therefore . Then , and . Now it easily follows by induction that if is odd and if is even.
We will show by induction on that for all odd and for all even . The basis of induction has been proved above. Assume that the statement holds for all if is even, as we have shown above. Therefore for odd and for even , which completes the induction. It is easy to check that this function indeed satisfies the conditions of the problem.