Maths Olympiad Prep

Library / /19 of 25

, 2024

Number theory Difficulty 8.0 National Olympiad, round 2 Prove it European Girls' Mathematical Olympiad (EGMO)

Problem:
Let N\mathbb{N} denote the set of positive integers. Find all functions f:NNf: \mathbb{N} \rightarrow \mathbb{N} such that the following assertions are true for every pair of positive integers (x,y)(x, y):
- xx and f(x)f(x) have the same number of positive divisors.
- If xx does not divide yy and yy does not divide xx, then
gcd(f(x),f(y))>f(gcd(x,y)) \operatorname{gcd}(f(x), f(y)) > f(\operatorname{gcd}(x, y))
Here gcd(m,n)\operatorname{gcd}(m, n) is the largest positive integer that divides both mm and nn.

Solutions — 2

Solution 1

Solution:
Let ff be a function satisfying these properties. From the first one, it follows that f(1)=1f(1)=1 and for each prime number pp, f(p)=qpf(p)=q_p for some prime number qpq_p. Assume p2p \neq 2, the pair (2,p)(2, p) in property 2 gives
gcd(q2,qp)=gcd(f(2),f(p))>f(gcd(2,p))=f(1)=1 \operatorname{gcd}\left(q_2, q_p\right) = \operatorname{gcd}(f(2), f(p)) > f(\operatorname{gcd}(2, p)) = f(1) = 1
so qp=q2q_p = q_2 for all pp. Set q=q2q = q_2.
Denote by d(n)d(n) the number of divisors of a positive integer nn.
We will prove the following claim by induction on k0k \geq 0, the number of distinct prime divisors of nn: For a positive integer nn, f(n)f(n) is a power of qq.
The claim, together with the first property, imply that f(n)=qd(n)1f(n) = q^{d(n)-1}.
For k=0k=0 the claim is already proved.
For k=1k=1, we need to prove that f(pm)f\left(p^m\right) is a power of qq for all positive mm. The case m=1m=1 was already proved. Assume now the result being proved for all positive integers m\leq m. As d(pt)=t+1d\left(p^t\right) = t+1, we then know f(pt)=qtf\left(p^t\right) = q^t for all tmt \leq m. Now we consider t=m+1t = m+1.
Let rpr \neq p be a prime. Plug the pair (pm1r,pm)\left(p^{m-1} r, p^m\right) into the second property:
gcd(f(pm1r),qm)=gcd(f(pm1r),f(pm))>f(pm1)=qm1 \operatorname{gcd}\left(f\left(p^{m-1} r\right), q^m\right) = \operatorname{gcd}\left(f\left(p^{m-1} r\right), f\left(p^m\right)\right) > f\left(p^{m-1}\right) = q^{m-1}
This implies qmq^m divides f(pm1r)f\left(p^{m-1} r\right). Since f(pm1r)f\left(p^{m-1} r\right) has 2m2m divisors, and vq(f(pm1r))mv_q\left(f\left(p^{m-1} r\right)\right) \geq m, it follows that f(pm1r)f\left(p^{m-1} r\right) does not have prime divisors other than qq, since it would then have at least 2(vq(f(pm1r))+1)>2m2 \cdot \left(v_q\left(f\left(p^{m-1} r\right)\right)+1\right) > 2m divisors. Thus, f(pm1r)f\left(p^{m-1} r\right) is a power of qq. And since it has 2m2m divisors, we must have f(pm1r)=q2m1f\left(p^{m-1} r\right) = q^{2m-1}.
Now, plug the pair (pm+1,pm1r)\left(p^{m+1}, p^{m-1} r\right) into the second property. We have
gcd(f(pm+1),q2m1)=gcd(f(pm+1),f(pm1r))>f(pm1)=qm1. \operatorname{gcd}\left(f\left(p^{m+1}\right), q^{2m-1}\right) = \operatorname{gcd}\left(f\left(p^{m+1}\right), f\left(p^{m-1} r\right)\right) > f\left(p^{m-1}\right) = q^{m-1}.
Then f(pm+1)f\left(p^{m+1}\right) is divisible by qmq^m. If f(pm+1)f\left(p^{m+1}\right) had a prime factor other than qq, it would have at least 2(m+1)2(m+1) divisors, but it has m+2m+2 divisors and 2(m+1)>m+22(m+1) > m+2 since m1m \geq 1. Hence, f(pm+1)f\left(p^{m+1}\right) must also be a power of qq. By induction, the proof is finished for k=1k=1.
Suppose the claim is true for all integers nn with at most kk distinct prime factors, for some k1k \geq 1. In order to prove the claim for integers with k+1k+1 distinct prime factors, it suffices
to show that for every positive integer NN with kk distinct prime factors, every positive integer mm and every prime pp which does not divide NN, the number f(Npm)f\left(N p^m\right) is a power of qq. We will prove this by induction on mm. The case m=0m=0 follows from the previous induction hypothesis. Now suppose it has already been proved for a certain m0m \geq 0.
Let ss be a prime divisor of NN. Consider the numbers (Npm+1,Nspm)\left(N p^{m+1}, N s p^m\right). By the second property,
gcd(f(Npm+1),qd(Nspm)1)=gcd(f(Npm+1),f(Nspm))>f(Npm)=qd(Npm)1 \operatorname{gcd}\left(f\left(N p^{m+1}\right), q^{d\left(N s p^m\right)-1}\right) = \operatorname{gcd}\left(f\left(N p^{m+1}\right), f\left(N s p^m\right)\right) > f\left(N p^m\right) = q^{d\left(N p^m\right)-1}
Then qd(Npm)q^{d\left(N p^m\right)} divides f(Npm+1)f\left(N p^{m+1}\right). If f(Npm+1)f\left(N p^{m+1}\right) has a prime factor other than qq, it would have at least 2(d(Npm)+1)=2((m+1)d(N)+1)=(2m+2)d(N)+22\left(d\left(N p^m\right)+1\right) = 2((m+1)d(N)+1) = (2m+2)d(N)+2 divisors, but it has only (m+2)d(N)(m+2)d(N) divisors. Hence, f(Npm+1)f\left(N p^{m+1}\right) must also be a power of qq.
Finally, let us check that the function f(n)=qd(n)1f(n) = q^{d(n)-1} does satisfy the properties of the problem for any prime number qq. The first property obviously holds. To check the second one, note that
gcd(f(x),f(y))=qmin(d(x),d(y))>qd(gcd(x,y))=f(gcd(x,y)) \operatorname{gcd}(f(x), f(y)) = q^{\min (d(x), d(y))} > q^{d(\operatorname{gcd}(x, y))} = f(\operatorname{gcd}(x, y))
whenever xyx \nmid y and yxy \nmid x.

Solution 2

Solution:
Firstly, one can prove that for any prime pp and any m0m \geq 0, f(pm)=qmf\left(p^m\right) = q^m, in the same way as in the first solution.
We will prove the claim this time by induction on k=d(n)k = d(n). We notice again that the claim implies that f(n)=qd(n)1f(n) = q^{d(n)-1}.
The cases k=1,2,3k=1,2,3 are then already proved. Now suppose that for some k3k \geq 3 we have proved the claim for all positive integers nn with at most kk divisors.
Consider a positive integer nn with k+1k+1 divisors. If nn is a power of a prime, then it is already proved that f(n)f(n) is a power of qq. Suppose nn is not a power of a prime. Consider distinct prime numbers p1p_1 and p2p_2 which divide nn, such that vp1(n)vp2(n)v_{p_1}(n) \leq v_{p_2}(n). Consider the number np2p1\frac{n p_2}{p_1}: its number of divisors is vp1(n)(vp2(n)+2)(vp1(n)+1)(vp2(n)+1)d(n)\frac{v_{p_1}(n)(v_{p_2}(n)+2)}{(v_{p_1}(n)+1)(v_{p_2}(n)+1)} d(n), which is strictly less than the number of divisors of nn. Thus, by induction hypothesis, f(np2p1)f\left(\frac{n p_2}{p_1}\right) is a power of qq.
By applying the second property to the pair (n,np2p1)\left(n, \frac{n p_2}{p_1}\right), we have
gcd(f(n),qd(np2p1)1)=gcd(f(n),f(np2p1))>f(np1)=qd(np1)1 \operatorname{gcd}\left(f(n), q^{d\left(\frac{n p_2}{p_1}\right)-1}\right) = \operatorname{gcd}\left(f(n), f\left(\frac{n p_2}{p_1}\right)\right) > f\left(\frac{n}{p_1}\right) = q^{d\left(\frac{n}{p_1}\right)-1}
This implies that qd(np1)q^{d\left(\frac{n}{p_1}\right)} divides f(n)f(n). Again, if other primes than qq divided f(n)f(n), it would have at least 2(d(np1)+1)2\left(d\left(\frac{n}{p_1}\right)+1\right) divisors. But 2(d(np1)+1)=2(vp1(n)vp1(n)+1d(n)+1)>d(n)2\left(d\left(\frac{n}{p_1}\right)+1\right) = 2\left(\frac{v_{p_1}(n)}{v_{p_1}(n)+1} d(n)+1\right) > d(n). So f(n)f(n) is a power of qq and the Claim is proved.
We finally check as in the first solution that f(n)=qd(n)1f(n) = q^{d(n)-1} satisfies the 2 properties for all prime qq.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.