Maths Olympiad Prep

Library / /329 of 397

, 2022

Number theory Difficulty 6.8 National Olympiad Prove it Taiwan

Let N\mathbb{N} denote the set of all positive integers, and N2\mathbb{N}^2 denote the set of ordered pairs of positive integers. Among all functions from N2\mathbb{N}^2 to N\mathbb{N}, for every nonnegative integer kk, we recursively define a good function of level kk as follows:
(i) The function f(a,b)=af(a,b) = a and the function f(a,b)=bf(a,b) = b are both good functions of level 0.
(ii) If f(a,b),g(a,b)f(a,b), g(a,b) are good functions of level pp and level qq respectively, then gcd(f(a,b),g(a,b))\text{gcd}(f(a,b), g(a,b)) is a good function of level (p+q)(p+q), and f(a,b)g(a,b)f(a,b)g(a,b) is a good function of level (p+q+1)(p+q+1).
Prove that: if for some positive integer n3n \ge 3, f(a,b)f(a,b) is a good function of level kk, where kC3nk \le C_3^n, then there exist a positive integer tC2nt \le C_2^n and tt pairs of nonnegative integers (x1,y1),,(xt,yt)(x_1, y_1), \dots, (x_t, y_t) such that
f(a,b)=gcd(ax1by1,,axtbyt) f(a,b) = \text{gcd}(a^{x_1}b^{y_1}, \dots, a^{x_t}b^{y_t})

Solution

Let N=(n3)N = \binom{n}{3}. Let's first show that the statement holds for t(N+32)t \le \binom{N+3}{2} and all good functions of order at most N+1N+1. This can be proved by induction on NN. It is trivial when N=0N=0. Now suppose that the statement holds for all smaller NN, then for any good function with NN multiplications, if there is no gcd\text{gcd} in the expression, then the statement is also trivial. Therefore we now also assume that the statement is true for all good functions with NN multiplications and fewer numbers of gcd\text{gcd}'s. Note that a nontrivial (i.e. not aa nor bb) good function is of the form
gcd(f(a,b),g(a,b)) \text{gcd}(f(a, b), g(a, b))
or
f(a,b)g(a,b). f(a, b)g(a, b).
In the former case, the statement clearly holds by the inductive hypothesis. For the latter, suppose that there are qq multiplications in f(a,b)f(a, b) and rr in g(a,b)g(a, b). Then q+r=N1q+r = N-1, and by the inductive hypothesis there are good functions Q1(a,b),,Qu(a,b)Q_1(a, b), \dots, Q_u(a, b) of order at most q+1q+1 and good functions R1(a,b),,Rv(a,b)R_1(a, b), \dots, R_v(a, b) of order at most r+1r+1 such that our target function looks like
gcd(Q1(a,b),,Qu(a,b))gcd(R1(a,b),,Rv(a,b)). \text{gcd}(Q_1(a, b), \dots, Q_u(a, b)) \cdot \text{gcd}(R_1(a, b), \dots, R_v(a, b)).
Since gcd(x,y)gcd(z,w)=gcd(xz,xw,yz,yw)\gcd(x, y) \gcd(z, w) = \gcd(xz, xw, yz, yw), we can write the right hand side as
gcd{Qi(a,b)Rj(a,b)i=1,,u, j=1,,v}. \gcd\{Q_i(a, b)R_j(a, b) \mid i = 1, \dots, u, \ j = 1, \dots, v\}.
Note that QiRjQ_i R_j is a good function of order at most (q+1)+(r+1)=N+1(q+1) + (r+1) = N+1. After getting rid of the repeated good functions, we have proven the desired statement via induction.

Now note that if (x1,y1)(x2,y2)(x_1, y_1) \le (x_2, y_2), then ax1by1a^{x_1} b^{y_1} divides ax2by2a^{x_2} b^{y_2}, showing that gcd(ax1by1,ax2by2)=ax1by1\gcd(a^{x_1} b^{y_1}, a^{x_2} b^{y_2}) = a^{x_1} b^{y_1}. Moreover, if (x1,y1),(x2,y2),(x3,y3)Z02(x_1, y_1), (x_2, y_2), (x_3, y_3) \in \mathbb{Z}_{\ge 0}^2 are such that (x3,y3)(x_3, y_3) is above the segment connecting (x1,y1),(x2,y2)(x_1, y_1), (x_2, y_2), then clearly gcd(ax1by1,ax2by2)\gcd(a^{x_1} b^{y_1}, a^{x_2} b^{y_2}) always divides ax3by3a^{x_3} b^{y_3} by an easy pp-adic analysis. Thus, we can reduce gcd(ax1by1,ax2by2,ax3by3)\gcd(a^{x_1} b^{y_1}, a^{x_2} b^{y_2}, a^{x_3} b^{y_3}) to gcd(ax1by1,ax2by2)\gcd(a^{x_1} b^{y_1}, a^{x_2} b^{y_2}). We can use these to reduce the formula, and suppose that at last we have the good function
gcd(ax1by1,,axtbyt) \gcd(a^{x_1} b^{y_1}, \dots, a^{x_t} b^{y_t})
with x1<<xtx_1 < \dots < x_t (note that equality cannot occur, for otherwise the expression can be further reduced). Since the expression is not reducible, we have that y1>y2>>yty_1 > y_2 > \dots > y_t. Moreover, we know that
y1y2x2x1>y2y3x3x2>>yt1ytxtxt1 \frac{y_1 - y_2}{x_2 - x_1} > \frac{y_2 - y_3}{x_3 - x_2} > \dots > \frac{y_{t-1} - y_t}{x_t - x_{t-1}}
Hence, if t>(n2)t > \binom{n}{2}, then
2(n3)+2(xtx1)+(y1yt)=i=1t1(xi+1xi)+(yiyi+1)2(n3)+(t(n2))n2(n3)+n, \begin{aligned} 2\binom{n}{3} + 2 &\ge (x_t - x_1) + (y_1 - y_t) \\ &= \sum_{i=1}^{t-1} (x_{i+1} - x_i) + (y_i - y_{i+1}) \\ &\ge 2\binom{n}{3} + \left(t - \binom{n}{2}\right)n \\ &\ge 2\binom{n}{3} + n, \end{aligned}
which is a contradiction.

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 translated into English from zh; metadata (topic, difficulty) added by this project.