Maths Olympiad Prep

Library / /272 of 397

Combinatorics Difficulty 6.4 National Olympiad Prove it Taiwan

For any two finite sets XX and YY of positive integers, define:
(1) fX(1)=min{n:nN,nX}f_X(1) = \min\{n : n \in \mathbb{N}, n \notin X\}, where N\mathbb{N} denotes the set of all positive integers;
(2) k>1\forall k > 1, fX(k)=min{n:n>fX(k1),nX}f_X(k) = \min\{n : n > f_X(k-1), n \notin X\};
(3) XY=X{fX(y):yY}X \star Y = X \cup \{f_X(y) : y \in Y\}.

Let a,ba, b be positive integers, AA a set of aa positive integers, and BB a set of bb positive integers.
Prove: If AB=BAA \star B = B \star A, then
A(A(A(AA)))=B(B(B(BB))), A \star (A \star \cdots \star (A \star (A \star A)) \cdots) = B \star (B \star \cdots \star (B \star (B \star B)) \cdots),
where the left side has bb AA's and the right side has aa BB's.

Solution

(1) We first show that \star is associative. This can be done through the following lemma.

Lemma 1. fXY=fXfYf_{X\star Y} = f_X \circ f_Y.

Proof. Note that
fXY(N)=N(XY)=(NX)fX(Y)=fX(N)fX(Y)=fX(NY)=fX(fY(N)) \begin{align*} f_{X \star Y}(\mathbb{N}) &= \mathbb{N} - (X \star Y) = (\mathbb{N} - X) - f_X(Y) \\ &= f_X(\mathbb{N}) - f_X(Y) = f_X(\mathbb{N} - Y) = f_X(f_Y(\mathbb{N})) \end{align*}
This means that the functions fXYf_{X \star Y} and fXfYf_X \circ f_Y are strictly increasing functions with the same range. This forces that the two must be the same. \square.

The lemma implies associativity since
N((AB)C)=f(AB)C(N)=fA(fB(fC(N)))=fA(BC)(N)=N(A(BC)), \begin{align*} \mathbb{N} - ((A \star B) \star C) &= f_{(A \star B) \star C}(\mathbb{N}) = f_A(f_B(f_C(\mathbb{N}))) \\ &= f_{A \star (B \star C)}(\mathbb{N}) = \mathbb{N} - (A \star (B \star C)), \end{align*}
so (AB)C=A(BC)(A \star B) \star C = A \star (B \star C).

(2) Due to the associativity, let us define Xk=XXXX^{*k} = X \star X \star \dots \star X, where XX appears kk times on the RHS. Our goal is to show that Ab=BaA^{*b} = B^{*a}. This can be obtained through the following lemma:

Lemma 2. If XY=YXX \star Y = Y \star X and X=Y|X| = |Y|, then X=YX = Y.

If Lemma 2 holds, then due to the fact that
(i) Ab=ab=Ba|A^{*b}| = ab = |B^{*a}|;
(ii) Since AB=BAA \star B = B \star A, by Lemma 1, we have AbBa=BaAbA^{*b} \star B^{*a} = B^{*a} \star A^{*b}.
So by Lemma 2, we have Ab=BaA^{*b} = B^{*a}.

Hence, it remains to prove Lemma 2. Assume XYX \neq Y. Let ss be the largest number in exactly one of XX and YY; WLOG we assume sXYs \in X - Y. The number fX(s)f_X(s) counts the ss-th number not in XX, which implies that
fX(s)=s+X{1,2,,fX(s)}.(1) f_X(s) = s + |X \cap \{1, 2, \dots, f_X(s)\}|. \quad (1)
Since fX(s)sf_X(s) \geq s, we have that
{fX(s)+1,fX(s)+2,,}X={fX(s)+1,fX(s)+2,}Y, \{f_X(s) + 1, f_X(s) + 2, \dots, \} \cap X = \{f_X(s) + 1, f_X(s) + 2, \dots\} \cap Y,
which, together with the assumption that X=Y|X| = |Y|, gives
X{1,2,,fX(s)}=Y{1,2,,fX(s)}.(2) |X \cap \{1, 2, \dots, f_X(s)\}| = |Y \cap \{1, 2, \dots, f_X(s)\}|. \quad (2)
Now, consider the equation
tY{1,2,,t}=s. t - |Y \cap \{1, 2, \dots, t\}| = s.
This equation is satisfied only when t[fY(s),fY(s+1))t \in [f_Y(s), f_Y(s+1)), because the left hand side counts the number of elements up to tt that are not in YY. We have that the value t=fX(s)t = f_X(s) satisfies the above equation because of (1) and (2). Furthermore, since fX(s)Xf_X(s) \notin X and fX(s)sf_X(s) \ge s,
we have that fX(s)Yf_X(s) \notin Y due to the maximality of ss. Thus, by the above discussion, we must have fX(s)=fY(s)f_X(s) = f_Y(s).

Finally, we arrive at a contradiction. The value fX(s)f_X(s) is neither in XX nor in fX(Y)f_X(Y), because ss is not in YY by assumption. Thus, fX(s)XYf_X(s) \notin X \star Y. However, since sXs \in X, we have fY(s)YXf_Y(s) \in Y \star X, 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.