Olympiad Maths Prep

Track / Stage 9 / 57 of 80 #1937 of 2000

Problem 1937

IMO P2/P5; hard shortlist
Number theory Difficulty 9.1 Prove it 2025 International Mathematical Olympiad China National Team Selection Test · China · 2025

Find all positive integers mm such that there exists an infinite set AA of positive integers satisfying: for any mm distinct elements a1,a2,,ama_1, a_2, \dots, a_m in AA, both a1+a2++ama_1+a_2+\dots+a_m and a1a2ama_1a_2\cdots a_m are square-free.

*Note: A positive integer nn is called square-free if it is not divisible by the square of any prime number.*

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

Proof: We first prove a lemma.
Lemma: For integers m2m \ge 2, s1s \ge 1, and a sequence 1=x1<<xs1 = x_1 < \dots < x_s where every sum 1jmxij\sum_{1 \le j \le m} x_{i_j} (1i1ims1 \le i_1 \le \dots \le i_m \le s) is square-free, there exists an integer x>xsx > x_s such that:
* xx is coprime with each xix_i (1is1 \le i \le s)
* Every sum (mt)x+1jtxij(m-t)x + \sum_{1 \le j \le t} x_{i_j} (0tm10 \le t \le m-1, 1i1its1 \le i_1 \le \dots \le i_t \le s) is square-free
Proof of Lemma: Take B>1B > 1 such that:
cB:=p<B(11p)1>m2m+s. c_B := \prod_{p < B} \left(1 - \frac{1}{p}\right)^{-1} > m \cdot 2^{m+s}.
Let
dB=pBp,M0=1k2m+sxsk,M=dBM0. d_B = \prod_{p \le B} p, \quad M_0 = \prod_{1 \le k \le 2^{m+s} x_s} k, \quad M = d_B M_0.
Consider x=yM2+x1x = yM^2 + x_1 (1yM21 \le y \le M^2). Clearly, xx is coprime with each xix_i (1is1 \le i \le s).
Note that
(mt)x+1jtxijmxm(M4+1)<(mM2)2. (m-t)x + \sum_{1 \le j \le t} x_{i_j} \le mx \le m(M^4 + 1) < (mM^2)^2.
If q2(mt)x+1jtxijq^2 \mid (m-t)x + \sum_{1 \le j \le t} x_{i_j}, then q<mM2q < mM^2.
If qMq \nmid M, clearly (mt)x+1jtxij(m-t)x + \sum_{1 \le j \le t} x_{i_j} is not divisible by q2q^2. For primes q<mM2q < mM^2 with qMq \nmid M (so q>2m+sxsq > 2^{m+s}x_s), let XqX_q be the set of integers 1yM21 \le y \le M^2 where some sum (mt)x+1jtxij(m-t)x + \sum_{1 \le j \le t} x_{i_j} is divisible by q2q^2.
The number of possible index sets is at most 2s+m22^{s+m-2}, so
Xq2m+s2(M2q2+1). |X_q| \le 2^{m+s-2} \left( \frac{M^2}{q^2} + 1 \right).
For 2m+sxs<qM2^{m+s}x_s < q \le M:
Xq2m+s1M2q2; |X_q| \le 2^{m+s-1} \frac{M^2}{q^2};
---

For M<qmM2M < q \le mM^2:
Xq2m+s1. |X_q| \le 2^{m+s-1}.
Thus,
Xq2m+s1M2q>2m+sxs1q2+2m+s1(π(mM2)π(M))2m+s12m+sxsM2+m2m+s1cBM2<M2. \begin{aligned} |\bigcup X_q| &\le 2^{m+s-1} M^2 \sum_{q>2^{m+s}x_s} \frac{1}{q^2} + 2^{m+s-1}(\pi(mM^2) - \pi(M)) \\ &\le \frac{2^{m+s-1}}{2^{m+s}x_s} M^2 + \frac{m \cdot 2^{m+s-1}}{c_B} M^2 < M^2. \end{aligned}
Since we have used dBMd_B \mid M, it follows that
π(mM2)π(M)(mM2M)pB(11p)<cB1mM2. \pi(mM^2) - \pi(M) \le (mM^2 - M) \prod_{p \le B} \left(1 - \frac{1}{p}\right) < c_B^{-1} mM^2.
Now choose an integer yy such that 1yM1 \le y \le M and
yq<mM2qMXq, y \notin \bigcup_{\substack{q<mM^2 \\ q \nmid M}} X_q,
then x=yM2+x1x = yM^2 + x_1 will satisfy the requirements.
Now the main proof. If mm has a square factor p2p^2, by pigeonhole principle there exist mm elements ai1,,aima_{i_1}, \dots, a_{i_m} with ai1aim(modp2)a_{i_1} \equiv \dots \equiv a_{i_m} \pmod{p^2}, making their sum divisible by p2p^2.
If mm is square-free, construct A={ai}A = \{a_i\} inductively starting with a1=1a_1 = 1. By the lemma, we can find pairwise coprime integers 1=a1<a2<1 = a_1 < a_2 < \dots where all mm-term sums are square-free. Then all mm-term products are also square-free since the aia_i are pairwise coprime. \square

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.