Problem:
Let denote the set of positive integers. Find all functions such that the following assertions are true for every pair of positive integers :
- and have the same number of positive divisors.
- If does not divide and does not divide , then
Here is the largest positive integer that divides both and .
, 2024
Solutions — 2
Solution 1
Solution:
Let be a function satisfying these properties. From the first one, it follows that and for each prime number , for some prime number . Assume , the pair in property 2 gives
so for all . Set .
Denote by the number of divisors of a positive integer .
We will prove the following claim by induction on , the number of distinct prime divisors of : For a positive integer , is a power of .
The claim, together with the first property, imply that .
For the claim is already proved.
For , we need to prove that is a power of for all positive . The case was already proved. Assume now the result being proved for all positive integers . As , we then know for all . Now we consider .
Let be a prime. Plug the pair into the second property:
This implies divides . Since has divisors, and , it follows that does not have prime divisors other than , since it would then have at least divisors. Thus, is a power of . And since it has divisors, we must have .
Now, plug the pair into the second property. We have
Then is divisible by . If had a prime factor other than , it would have at least divisors, but it has divisors and since . Hence, must also be a power of . By induction, the proof is finished for .
Suppose the claim is true for all integers with at most distinct prime factors, for some . In order to prove the claim for integers with distinct prime factors, it suffices
to show that for every positive integer with distinct prime factors, every positive integer and every prime which does not divide , the number is a power of . We will prove this by induction on . The case follows from the previous induction hypothesis. Now suppose it has already been proved for a certain .
Let be a prime divisor of . Consider the numbers . By the second property,
Then divides . If has a prime factor other than , it would have at least divisors, but it has only divisors. Hence, must also be a power of .
Finally, let us check that the function does satisfy the properties of the problem for any prime number . The first property obviously holds. To check the second one, note that
whenever and .
Solution 2
Solution:
Firstly, one can prove that for any prime and any , , in the same way as in the first solution.
We will prove the claim this time by induction on . We notice again that the claim implies that .
The cases are then already proved. Now suppose that for some we have proved the claim for all positive integers with at most divisors.
Consider a positive integer with divisors. If is a power of a prime, then it is already proved that is a power of . Suppose is not a power of a prime. Consider distinct prime numbers and which divide , such that . Consider the number : its number of divisors is , which is strictly less than the number of divisors of . Thus, by induction hypothesis, is a power of .
By applying the second property to the pair , we have
This implies that divides . Again, if other primes than divided , it would have at least divisors. But . So is a power of and the Claim is proved.
We finally check as in the first solution that satisfies the 2 properties for all prime .