Problem 2. Let be the set of all positive integers. Find all functions such that for any positive integers and , the following two conditions hold: (1) , and (2) at least two of the numbers , , and are equal.