Maths Olympiad Prep

Library / /28 of 63

, 2023

Number theory Difficulty 8.2 Shortlist Prove it Turkey

For each integer n>1n > 1, let f(n)f(n) be the greatest proper divisor of nn. Is there a positive integer kk for which the total number of integers nn satisfying
nf(n)=k n - f(n) = k
is equal to 2023?

Solution

Answer: Yes, there exists.

*Observation 1:* If pp is the smallest prime divisor of n=pxn = px, then f(n)=nx=x(p1)f(n) = n-x = x(p-1).

*Observation 2:* Let pp be a prime number and xx be a positive integer. If x=1x=1 or none of the prime divisors of xx is less than pp, then f(xp)=x(p1)f(xp) = x(p-1).

*Lemma 1:* Let rr be a positive integer. Then there exist positive integers x1>x2>>xrx_1 > x_2 > \dots > x_r such that f(x1)=f(x2)==f(xr)f(x_1) = f(x_2) = \dots = f(x_r)

and xrx_r is prime.

*Proof:* We will prove the claim by induction on rr. The case r=1r=1 is trivial. Assume that the claim is true for r1r \ge 1. Thus, there exist such x1,,xrx_1, \dots, x_r. For i=1,,ri=1, \dots, r let pip_i be the smallest prime divisor of xix_i and xi=piyix_i = p_i y_i. Then by Observation 1 we have
y1(p11)=y2(p21)==yr1(pr11)=pr1 y_1(p_1-1) = y_2(p_2-1) = \dots = y_{r-1}(p_{r-1}-1) = p_r-1
and p1<p2<<prp_1 < p_2 < \dots < p_r. Let AA be the product of all prime numbers less than prp_r. Therefore, we have gcd(A(pr1),pr)=1\gcd(A(p_r-1), p_r) = 1 and thus, by Dirichlet's theorem there exists a prime number q>prq > p_r of the form A(pr1)x+prA(p_r-1)x + p_r. Then, q1=A(pr1)x+pr1=(pr1)(Ax+1)q-1 = A(p_r-1)x + p_r-1 = (p_r-1)(Ax+1). Note that B=Ax+1B = Ax+1 has no prime divisor less than prp_r. Thus, we get B=Ax+1B = Ax+1 for each i=1,,ri=1, \dots, r and hence, Bx1>Bx2>>Bxr>qBx_1 > Bx_2 > \dots > Bx_r > q satisfy the conditions for r+1r+1.

*Lemma 2:* Let q1<q2<<qkq_1 < q_2 < \dots < q_k be prime numbers and m=i=1kqiαim = \prod_{i=1}^k q_i^{\alpha_i}. If f(n)=mf(n) = m, then n=2mn = 2m or n=m+1n = m+1 is a prime number or there exists a 1jk11 \le j \le k-1 such that 1+i=1jqiαi1 + \prod_{i=1}^j q_i^{\alpha_i} is a prime number less than qj+1q_{j+1} and it is the smallest prime divisor of nn.

*Proof:* Let pp be the smallest prime divisor of nn and n=pxn = px. Then x(p1)=i=1kqiαix(p-1) = \prod_{i=1}^k q_i^{\alpha_i}. If x=1x=1, then p1=mp-1=m and n=p=m+1n=p=m+1 is a prime number. If p=2p=2, then x=mx=m and n=2mn=2m. Now, let p>2p>2 and x>1x>1. By the observations above we see that xx and p1p-1 are relatively prime. Therefore, for every i=1,,ki=1, \dots, k qiαiq_i^{\alpha_i} divides exactly one of xx and p1p-1. Moreover, if qsp1q_s|p-1, then p>qsp > q_s and none of q1,,qsq_1, \dots, q_s divides xx. So, for the largest jj satisfying qjp1q_j|p-1 (there exists such jj and jkj \ne k)) we obtain p1=i=1jqiαip-1 = \prod_{i=1}^j q_i^{\alpha_i} and qj+1<pq_{j+1} < p.

By Lemma 1 there exists a positive integer m=i=1kqiαim = \prod_{i=1}^k q_i^{\alpha_i} with q1<q2<<qkq_1 < q_2 < \dots < q_k such that f(n)=mf(n) = m has exactly r2023r \ge 2023 solutions. Then by Lemma 2 we see that

f(n)=m/qkαk=i=1k1qiαi f(n) = m/q_k^{\alpha_k} = \prod_{i=1}^{k-1} q_i^{\alpha_i}
has either *r* or *r* - 1 solutions. Indeed, if *m* + 1 is prime then the number of solutions decreases by 1, otherwise it remains the same. Consequently, we reach a number *m'* where *f*(*n*) = *m'* has exactly 2023 solutions.

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 and solution reproduced as published; topic and difficulty added by this site.