Skip to main content
OlympiadHQ

Browse · MathNet

Print

26th Turkish Mathematical Olympiad

Turkey number theory

Problem

Let 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 ; and , such that ?
Solution
Answer: 16. Note that if , 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 . We can partition these triples into 8 disjoint sets each of the form where are pairwise distinct. By Pigeonhole Principle, among 17 triples there are all triples from at least one of these sets. Therefore, for a permutation of , we get Let us prove that . For a prime number and a nonnegative integer , let . In this case, we get

and hence . Therefore, . In a similar way, we can show that . If is coprime with two of then we can arrange on a circle so that neighbors are coprime. (Firstly we put arbitrarily. Then we put between the ones which are coprime with .) Consider the case where is not coprime with at least two of . Without the loss of generality, we assume that and . Then we have This means that there are at least 8 many triples not satisfying . It follows that the number of triples satisfying the conditions can not be greater than 16.
Final answer
16

Techniques

Greatest common divisors (gcd)Prime numbersPigeonhole principle