Skip to main content
OlympiadHQ

Browse · MathNet

Print

Team Selection Test for IMO 2024

Turkey 2024 counting and probability

Problem

If is a set consisting of positive integers, then what is the maximum number of pairs such that and is a prime number?
Solution
Answer: .

Example: .

Construct a graph whose vertex set is and edge set consists of noble pairs. We will show that .

We first prove that is bipartite. Assume that has an odd cycle. Start from one of the vertices and move along the cycle in clockwise direction. For any prime number as we pass through an edge we either multiply the number by , divide the number by or do an operation with some other prime. As we come back to the starting point, number of multiplications by must be equal to the number of divisions by . Therefore, contribution of any prime to the cycle is even, and hence the cycle must be an even cycle, contradiction.

Let parts of be and with , , . Now consider a in with vertices and . It is easy to see that and (or vice versa) for some positive integer and distinct primes and . Also note that we have .

Suppose that a exists in with vertices and . Then which implies that , contradiction. Thus has no . Consequently, sum of degrees of any two vertices in is at most , and hence, we get . Then, when we get .

Case 1: and . Let be the largest degree in . If , then . If , then . If , then the other degrees are at most and hence and holds only if the remaining four vertices all have degree .

Let and suppose that are adjacent to a vertex in . Then, as has no , any vertex in of degree must be adjacent to both of and . But then there occurs to be a , contradiction. Thus, we have . Finally, if , then obviously .

Case 2: . If , then . If , then . If , then clearly . Finally, let us consider the case when . We will show that can not have three vertices of degree . Assume all have degree . Let the neighbors of be . Since has no , is adjacent to and . Let the other two neighbors of be and . Again as has no , we easily see that neighbors of are . Note that do not have a common neighbor and any two of them belong to some . Suppose . The ratio where is either product or quotient of two distinct primes. As , we obtain that or for some positive integer and distinct primes . But then are all adjacent to or , contradiction.

---

Alternative solution.

Let be the maximum number of such pairs in a set with positive integers. We will show that . By the example in the first solution, then we can conclude that .

Note that we can assume that the greatest common divisor of all the numbers in the set is . Let be a prime and and be from the set. Divide the set into two sets, consisting of the ones not divisible by , and consisting of the ones divisible by . Let be a prime number. Then we can not have and . Also note that and implies and there exists a unique for given and vice versa. Therefore, we obtain the following inequality

Clearly and . By using that inequality one can easily obtain as desired.

Remark: By using the inequality above one can determine the exact value of . Let be the number of ones in the binary representation of . Then And the example is as follows: Suppose that has digits in its binary representation. Let be distinct prime numbers. By adding zeros to the left extend binary representations of to be with digits. Then for any , if its binary representation is pick the number for the set. One can easily see that number of pairs whose quotient is prime is exactly .
Final answer
20

Techniques

Graph TheoryColoring schemes, extremal argumentsInduction / smoothingPrime numbers