Maths Olympiad Prep

Track / Stage 8 / 109 of 180 #1809 of 1964

Problem 1809

IMO Shortlist mid-range; USAMO P2/P5
Number theory Difficulty 8.3 Prove it

Let N\mathbb N be the set of positive integers. Let f:NNf: \mathbb N \to \mathbb N be a function satisfying the following two conditions:
(a) f(m)f(m) and f(n)f(n) are relatively prime whenever mm and nn are relatively prime.
(b) nf(n)n+2012n \le f(n) \le n+2012 for all nn.

Prove that for any natural number nn and any prime pp, if pp divides f(n)f(n) then pp divides nn.

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Official solution

1. Claim: The function f f maps prime power inputs to prime power outputs. Specifically, if f(p) f(p) is a power of a prime q q (where p p is a prime), then f(pk) f(p^k) is also a power of q q for all kN k \in \mathbb{N} .

2. Proof of Claim:
- By the Chinese Remainder Theorem (CRT), we can find 2012 consecutive numbers, none of which are prime powers. For instance, set Ni(modpiqi) N \equiv -i \pmod{p_i q_i} for some distinct primes pi p_i and qi q_i . This ensures that there are arbitrarily large runs of non-prime power numbers.
- Let N N be a prime power such that N+1,,N+2012 N+1, \ldots, N+2012 are all non-prime powers.
- Consider all the prime powers in {1,,N} \{1, \ldots, N\} , partitioned into boxes as follows:
2,22,,2i,3,32,,3i,pk,pk2,,pki, \begin{array}{c} \boxed{2, 2^2, \ldots, 2^i, \ldots} \\ \boxed{3, 3^2, \ldots, 3^i, \ldots} \\ \vdots \\ \boxed{p_k, p_k^2, \ldots, p_k^i, \ldots} \end{array}
There are k k boxes here, corresponding to the k k primes N \leq N .
- Consider the set A={2,3,,pk} A = \{2, 3, \ldots, p_k\} . These k k numbers are pairwise relatively prime, so their images under f f are also pairwise relatively prime.
- Since f(pk)N+2012 f(p_k) \leq N + 2012 and the numbers N,N+1,,N+2012 N, N+1, \ldots, N+2012 do not introduce any new primes, the image of each pA p \in A must be divisible by a unique prime among {2,,pk} \{2, \ldots, p_k\} .
- Therefore, for any pA p \in A , f(p)=σ(p)k f(p) = \sigma(p)^k , where σ \sigma is some permutation on A A .
- If f(pi) f(p^i) had a prime divisor other than that assigned to f(p) f(p) , it would clash with another prime in a different box, which is impossible since they are in different boxes.
- This proves our claim, as N N can be as large as we like.

3. Mapping of Primes to Their Own Powers:
- Suppose f(p)=qm f(p) = q^m for some prime qp q \neq p .
- Then for any k k , f(pk)=q f(p^k) = q^\ell for some \ell depending on k k .
- This implies:
pk<qpk+2012    (logpklogq,log(pk+2012)logq] p^k < q^\ell \leq p^k + 2012 \implies \ell \in \left( \frac{\log p^k}{\log q}, \frac{\log (p^k + 2012)}{\log q} \right]
- The length of this interval is:
log(1+2012pk)logq \frac{\log \left(1 + \frac{2012}{p^k}\right)}{\log q}
which becomes arbitrarily small as k k \to \infty .
- The leftmost point of this interval is klogqp k \log_q p , whose fractional part can be made arbitrarily small for some large k k , since {kα} \{ k \alpha \} is dense in (0,1) (0,1) for αRQ \alpha \in \mathbb{R} \setminus \mathbb{Q} .
- Therefore, we can choose k k such that the interval fails to contain an integer, creating a contradiction for \ell .

4. Final Step:
- Suppose there exists nN n \in \mathbb{N} and a prime p p such that pf(n) p \mid f(n) but pn p \nmid n .
- Then (n,p)=1    (f(n),f(p))=1 (n, p) = 1 \implies (f(n), f(p)) = 1 , which contradicts pf(n) p \mid f(n) and f(p)=pk f(p) = p^k .

Thus, we have shown that if p p divides f(n) f(n) , then p p must divide n n .

\blacksquare

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.