Olympiad Maths Prep

Track / Stage 7 / 272 of 300 #1672 of 2000

Problem 1672

National olympiad second round; IMO P1/P4
Number theory Difficulty 7.8 Prove it Slovenija 2016 · Slovenia · 2016

Let AA be a set of pairwise distinct positive integers. A division of AA into two disjoint non-empty subsets A1A_1 and A2A_2 is good, if the least common multiple of the elements of A1A_1 is the same as the greatest common divisor of the elements of A2A_2. Show that for a set with 3n+23n + 2 elements the maximal possible number of good divisions is equal to 2n2n. (A simplification of the problem C3 from the IMO Shortlist 2015.)

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

Let a1<a2<<a3n+2a_1 < a_2 < \dots < a_{3n+2} be the positive integers in our set. For each good division of the set into subsets A1A_1 and A2A_2 the least common multiple of the numbers from A1A_1 is greater than or equal to all of the elements of A1A_1. Similarly, the greatest common divisor of the numbers in A2A_2 is smaller than or equal to all the numbers in A2A_2. So, all the numbers in A1A_1 have to be smaller than all of the numbers in A2A_2 and any good division can only be of the form
A1={a1,a2,,ak} in A2={ak+1,ak+2,,a3n+2}, A_1 = \{a_1, a_2, \dots, a_k\} \text{ in } A_2 = \{a_{k+1}, a_{k+2}, \dots, a_{3n+2}\},
where 1k3n+11 \le k \le 3n+1.

For each good division let us call the greatest element aka_k of A1A_1 the *dividing number*. For each kk, 1k3n+11 \le k \le 3n+1, let lkl_k denote the least common multiple of the numbers a1,,aka_1, \dots, a_k and let dkd_k denote the greatest common divisor of the numbers ak+1,,a3n+2a_{k+1}, \dots, a_{3n+2}.

At the moment we have 3n+13n+1 divisions which can potentially be good. We have to show that there are at most 2n2n good divisions. We observe the validity of the following propositions.

Proposition 1: If aka_k and ak+1a_{k+1} are both dividing numbers then we have dk=lk=dk+1=lk+1=ak+1d_k = l_k = d_{k+1} = l_{k+1} = a_{k+1}.

*Proof:* Since aka_k and ak+1a_{k+1} are both dividing we have dk=lkd_k = l_k and dk+1=lk+1d_{k+1} = l_{k+1}. Also, lk+1=lcm(ak+1,lk)l_{k+1} = \text{lcm}(a_{k+1}, l_k) and dk=gcd(ak+1,dk+1)d_k = \text{gcd}(a_{k+1}, d_{k+1}). But lk=dkak+1l_k = d_k|a_{k+1}, so lk+1=lcm(ak+1,lk)=ak+1l_{k+1} = \text{lcm}(a_{k+1}, l_k) = a_{k+1}. Similarly, ak+1=lk+1=dk+1a_{k+1} = l_{k+1} = d_{k+1}, so dk=gcd(ak+1,dk+1)=ak+1d_k = \text{gcd}(a_{k+1}, d_{k+1}) = a_{k+1}.

Proposition 2: The numbers ak1a_{k-1}, aka_k and ak+1a_{k+1} cannot all be dividing numbers.

*Proof:* If they were, then by Proposition 1 we would have ak=dk=dk+1=ak+1a_k = d_k = d_{k+1} = a_{k+1}, which contradicts the assumption that the elements of the set AA are all distinct.

Proposition 3: The numbers a1a_1 and a2a_2 cannot both be dividing numbers.

*Proof:* If they were, then by Proposition 1 we would have a1=l1=l2=a2a_1 = l_1 = l_2 = a_2, which contradicts the assumption that a1<a2a_1 < a_2.

Proposition 4: The numbers a3na_{3n}, a3n+1a_{3n+1} cannot both be dividing numbers.

*Proof:* If they were, then by Proposition 1 we would have a3n+1=d3n+1=a3n+2a_{3n+1} = d_{3n+1} = a_{3n+2}, which contradicts the assumption that a3n+1<a3n+2a_{3n+1} < a_{3n+2}.

There are 3n+13n+1 candidates for the dividing numbers (i.e. a1,a2,,a3n+1a_1, a_2, \dots, a_{3n+1}). However, out of any three subsequent numbers at most two can be dividing numbers. Also, the first two and the last two cannot both be dividing numbers. So, the number of good divisions is at most 2((3n+2)2)3=2n\frac{2((3n+2)-2)}{3} = 2n.

Consider the set
B={6i,26i,36i0in1}{6n,26n}={1,2,3,6,,36n1,6n,26n}. \begin{aligned} B &= \{6^i, 2 \cdot 6^i, 3 \cdot 6^i \mid 0 \le i \le n-1\} \cup \{6^n, 2 \cdot 6^n\} \\ &= \{1, 2, 3, 6, \dots, 3 \cdot 6^{n-1}, 6^n, 2 \cdot 6^n\}. \end{aligned}
In this set the dividing numbers are exactly 1,61,,6n11, 6^1, \dots, 6^{n-1} and 3,361,,36n13, 3 \cdot 6^1, \dots, 3 \cdot 6^{n-1}. There are 2n2n of them, which shows that a set with 3n+23n+2 numbers that has 2n2n good divisions, exists.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.