Maths Olympiad Prep

Library / Turkish Mathematical Olympiad /27 of 47

Turkish Mathematical Olympiad

Number theory Difficulty 6.8 National Olympiad Prove it Turkey

Let a1,a2,a3,a4a_1, a_2, a_3, a_4 be positive integers such that in any circular arrangement of these numbers there are two adjacent non-coprime ones. What is the maximal possible number of ordered triples (i,j,k)(i, j, k); i,j,k∈{1,2,3,4}i, j, k \in \{1, 2, 3, 4\} and i≠j,j≠k,k≠ii \neq j, j \neq k, k \neq i, such that (gcd(ai,aj))2∣ak(\text{gcd}(a_i, a_j))^2 \mid a_k?

Solution

Answer: 16.
Note that if (a1,a2,a3,a4)=(1,2,3,6)(a_1, a_2, a_3, a_4) = (1, 2, 3, 6), there are 16 triples satisfying conditions:
(1, 2, 3), (1, 2, 6), (1, 3, 2), (1, 3, 6), (1, 6, 2), (1, 6, 3), (2, 3, 6), (2, 3, 1),
(2, 1, 3), (2, 1, 6), (3, 1, 2), (3, 1, 6), (6, 1, 2), (6, 1, 3), (3, 2, 6), (3, 2, 1).
Now we will show that the number of triples satisfying the conditions can not be 17. The total number of ordered triples is 4⋅3⋅2=244 \cdot 3 \cdot 2 = 24. We can partition these triples into 8 disjoint sets each of the form {(i,j,k),(j,k,i),(k,i,j)}\{(i, j, k), (j, k, i), (k, i, j)\} where i,j,ki, j, k are pairwise distinct. By Pigeonhole Principle, among 17 triples there are all triples from at least one of these sets. Therefore, for a permutation (a,b,c,d)(a, b, c, d) of (a1,a2,a3,a4)(a_1, a_2, a_3, a_4), we get
(gcd(a,b))2∣c,(gcd(b,c))2∣a,(gcd(c,a))2∣b. (\text{gcd}(a, b))^2 \mid c, (\text{gcd}(b, c))^2 \mid a, (\text{gcd}(c, a))^2 \mid b.
Let us prove that gcd(a,b)=gcd(b,c)=gcd(c,a)=1\text{gcd}(a, b) = \text{gcd}(b, c) = \text{gcd}(c, a) = 1. For a prime number pp and a nonnegative integer α\alpha, let pα∣gcd(a,b)p^\alpha \mid \text{gcd}(a, b). In this case, we get
p2α∣c⇒pα∣gcd(b,c)⇒p2α∣a⇒pα∣gcd(c,a)⇒p2α∣b⇒p2α∣gcd(a,b) \begin{align*} p^{2\alpha} \mid c &\Rightarrow p^{\alpha} \mid \text{gcd}(b, c) \Rightarrow p^{2\alpha} \mid a &\Rightarrow p^{\alpha} \mid \text{gcd}(c, a) \\ &\Rightarrow p^{2\alpha} \mid b \Rightarrow p^{2\alpha} \mid \text{gcd}(a, b) \end{align*}

and hence α=0\alpha = 0. Therefore, gcd⁡(a,b)=1\gcd(a, b) = 1. In a similar way, we can show that gcd⁡(b,c)=gcd⁡(c,a)=1\gcd(b, c) = \gcd(c, a) = 1. If dd is coprime with two of a,b,ca, b, c then we can arrange a,b,c,da, b, c, d on a circle so that neighbors are coprime. (Firstly we put a,b,ca, b, c arbitrarily. Then we put dd between the ones which are coprime with dd.) Consider the case where dd is not coprime with at least two of a,b,ca, b, c. Without the loss of generality, we assume that gcd⁡(b,d)>1\gcd(b, d) > 1 and gcd⁡(c,d)>1\gcd(c, d) > 1. Then we have
(gcd⁡(b,d))2∣a⇒gcd⁡(a,b)>1 (\gcd(b, d))^2 \mid a \Rightarrow \gcd(a, b) > 1
(gcd⁡(b,d))2∣c⇒gcd⁡(b,c)>1 (\gcd(b, d))^2 \mid c \Rightarrow \gcd(b, c) > 1
(gcd⁡(c,d))2∣a⇒gcd⁡(a,c)>1 (\gcd(c, d))^2 \mid a \Rightarrow \gcd(a, c) > 1
(gcd⁡(c,d))2∣b⇒gcd⁡(b,c)>1. (\gcd(c, d))^2 \mid b \Rightarrow \gcd(b, c) > 1.
This means that there are at least 8 many (i,j,k)(i, j, k) triples not satisfying (gcd⁡(ai,aj))2∣ak(\gcd(a_i, a_j))^2 \mid a_k. It follows that the number of triples satisfying the conditions can not be greater than 16.

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.