Maths Olympiad Prep

Track / Stage 7 / 151 of 300 #1551 of 1964

Problem 1551

National Olympiad second round; IMO P1/P4
Number theory Difficulty 7.2 Prove it Olimpiada Matemática Española (Concurso Final) · Mexico

Let SS be a finite subset of the integers. We define d2(S)d_2(S) and d3(S)d_3(S) as follows:
* d2(S)d_2(S) is the number of elements aSa \in S for which there exist x,yZx, y \in \mathbb{Z} such that x2y2=ax^2 - y^2 = a.
* d3(S)d_3(S) is the number of elements aSa \in S for which there exist x,yZx, y \in \mathbb{Z} such that x3y3=ax^3 - y^3 = a.

a. Let mm be an integer and let S={m,m+1,,m+2019}S = \{m, m+1, \dots, m+2019\}. Prove that
d2(S)>137d3(S). d_2(S) > \frac{13}{7} \cdot d_3(S).

b. Let nn be a positive integer and let Sn={1,2,,n}S_n = \{1, 2, \dots, n\}. Prove that there exists a number NN such that if n>Nn > N,
d2(Sn)>4d3(Sn). d_2(S_n) > 4 \cdot d_3(S_n).

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.

Next problem →

Official solution

First, we observe that a number can be written as a difference of squares if and only if it is not of the form 4k+24k + 2. To see this, we write x2y2=αβx^2 - y^2 = \alpha \cdot \beta, where α\alpha and β\beta have the same parity, and we simply set x=α+β2x = \frac{\alpha+\beta}{2}, y=βα2y = \frac{\beta-\alpha}{2}. For example, if n=4kn = 4k we may take α=2\alpha = 2, β=2k\beta = 2k; if n=4k+1n = 4k + 1 or n=4k+3n = 4k + 3, we may take α=1\alpha = 1, β=n\beta = n. Conversely, a difference of squares can never leave remainder 2 upon division by 4 (simply noting that a square is 0 or 1 modulo 4).

Let us now analyze what the differences of two cubes can look like. We observe that the residue modulo 7 of the cube of an integer can only be 0, 1, or 6; consequently, the difference of two cubes, modulo 7, can only be 0, 1, 2, 5, or 6. Doing the same modulo 9, we see that the residue of a cube modulo 9 can only be 0, 1, or 8; consequently, the difference of two cubes modulo 9 can only be 0, 1, 2, 7, or 8. Therefore, there are at most 5 options modulo 7 and 5 options modulo 9, and, by the Chinese Remainder Theorem, we have only 25 options modulo 63.

In an interval of length 2020 (a multiple of 4), exactly 3/4 of the numbers will be non-congruent to 2 modulo 4 (that is, d2(S)=1515d_2(S) = 1515). On the other hand, we have that 2020=3263+42020 = 32 \cdot 63 + 4, so that
d3(S)3225+4=804. d_3(S) \leq 32 \cdot 25 + 4 = 804.
Therefore, we have that d2(S)/d3(S)1515/804>13/7d_2(S)/d_3(S) \geq 1515/804 > 13/7, as we wanted to show.

We now move on to solving the second part. The same reasoning used above shows that
3n412d2(Sn)3n4+14. \frac{3n}{4} - \frac{1}{2} \leq d_2(S_n) \leq \frac{3n}{4} + \frac{1}{4}.
It will then suffice to show that asymptotically d3(n)<3n16d_3(n) < \frac{3n}{16}, that is, that for sufficiently large values of nn this last inequality holds.

Suppose that x>y>0x > y > 0. A first observation is that if x3y3nx^3 - y^3 \le n, then
nx3y3=(xy)(x2+xy+y2)x2+xy+y2>3y2, n \ge x^3 - y^3 = (x - y)(x^2 + xy + y^2) \ge x^2 + xy + y^2 > 3y^2,
so that y<n/3y < \sqrt{n/3}. On the other hand,
x3n+y3n+(n/3)3/2. x^3 \le n + y^3 \le n + (n/3)^{3/2}.
That is, xn+(n/3)3/23x \le \sqrt[3]{n + (n/3)^{3/2}}. Since the ratio n/(n/3)3/2n/(n/3)^{3/2} tends to 0 as nn tends to infinity, we have that for any δ>0\delta > 0 there will exist a sufficiently large number NN such that when n>Nn > N,
xn+(n/3)3/23<(1+δ)n/3. x \le \sqrt[3]{n + (n/3)^{3/2}} < (1 + \delta)\sqrt{n/3}.
Since we also know that y<xy < x, the number of pairs is necessarily bounded by (1+δ)2n/3/2(1+\delta)^{2n/3}/2. Therefore, we can obtain at most (1+δ)2n/6(1+\delta)^2n/6 numbers. We note that it is not necessary to consider the case where x,y<0x, y < 0, since the numbers obtained will be the same.

In the case where y<0<xy < 0 < x, we have that x3+(y)3nx^3 + (-y)^3 \le n, and it must be that x,y<n1/3x, -y < n^{1/3}, so that we can obtain at most n2/3n^{2/3} numbers. Selecting a sufficiently small δ\delta (for example δ=0.01\delta = 0.01), we conclude that
d3(Sn)(1+0.01)2n/6+n2/3<3n16 d_3(S_n) \le (1 + 0.01)^2 n/6 + n^{2/3} < \frac{3n}{16}
if nn is sufficiently large.

Source: MathNet, licensed CC-BY-4.0. Statement translated into English from es; metadata (topic, difficulty, ordering) added by this project.