Maths Olympiad Prep

Library / Taiwan IMO Selection Camp /242 of 359

Taiwan IMO Selection Camp

Combinatorics Difficulty 6.3 National Olympiad Prove it Taiwan

Let A1=∅A_1 = \emptyset, B1={0}B_1 = \{0\}. For all n≥2n \ge 2, construct recursively as follows:
An={x+1∣x∈Bn−1}, A_n = \{x + 1 \mid x \in B_{n-1}\},
Bn=An−1∪Bn−1−An−1∩Bn−1, B_n = A_{n-1} \cup B_{n-1} - A_{n-1} \cap B_{n-1},
Find all nn for which Bn={0}B_n = \{0\}?

(Note: For any sets AA and BB, the set A−BA - B denotes {x∈A∣x∉B}\{x \in A \mid x \notin B\}.)

Solution

We will prove that: Bn={0}B_n = \{0\} if and only if n=2kn = 2^k (k≥0k \ge 0).

Given a set SS, let the notation 2S={2x∣x∈S}2S = \{2x \mid x \in S\} and S+k={x+k∣x∈S}S + k = \{x + k \mid x \in S\} for any integer kk.

First, for all n≥1n \ge 1, the elements of AnA_n and BnB_n are non-negative integers, and moreover 0∉An0 \notin A_n and 0∈Bn0 \in B_n. This can be simply proved by induction.

Next, for n≥2n \ge 2, prove the following four properties:
(a) A2n−1=2An−1A_{2n-1} = 2A_n - 1;
(b) B2n−1=A2n−1∪B2nB_{2n-1} = A_{2n-1} \cup B_{2n};
(c) B2n=2BnB_{2n} = 2B_n;
(d) 1∈B2n−11 \in B_{2n-1}.

We prove this by induction. First check the case n=2n=2, observing the first few terms: A2={1}A_2 = \{1\}, B2={0}B_2 = \{0\}, A3={1}A_3 = \{1\}, B3={0,1}B_3 = \{0, 1\}, A4={1,2}A_4 = \{1, 2\}, B4={0}B_4 = \{0\}, and one can verify each of these holds. Below we assume n≥3n \ge 3 and that the four properties hold for n−1n-1. Regarding (a):

For (b) and (c), we first need to obtain
A2n−2=B2n−3+1=(A2n−3∪B2n−2)+1=((2An−1−1)∪2Bn−1)+1=2An−1∪(2Bn−1+1). \begin{aligned} A_{2n-2} &= B_{2n-3} + 1 = (A_{2n-3} \cup B_{2n-2}) + 1 \\ &= ((2A_{n-1} - 1) \cup 2B_{n-1}) + 1 \\ &= 2A_{n-1} \cup (2B_{n-1} + 1). \end{aligned}

Regarding (b):
B2n−1=A2n−2∪B2n−2−A2n−2∩B2n−2=2An−1∪(2Bn−1+1)∪2Bn−1(2An−1∪(2Bn−1+1))∩2Bn−1=(2Bn−1+1)∪2An−1∪2Bn−1−2An−1∩2Bn−1=(2Bn−1+1)∪(2An−1∪2Bn−1−2An−1∩2Bn−1)=(2Bn−1+1)∪2Bn=(B2n−2+1)∪2Bn=A2n−1∪2Bn, \begin{aligned} B_{2n-1} &= A_{2n-2} \cup B_{2n-2} - A_{2n-2} \cap B_{2n-2} \\ &= 2A_{n-1} \cup (2B_{n-1} + 1) \cup 2B_{n-1} \\ & \quad (2A_{n-1} \cup (2B_{n-1} + 1)) \cap 2B_{n-1} \\ &= (2B_{n-1} + 1) \cup 2A_{n-1} \cup 2B_{n-1} - 2A_{n-1} \cap 2B_{n-1} \\ &= (2B_{n-1} + 1) \cup (2A_{n-1} \cup 2B_{n-1} - 2A_{n-1} \cap 2B_{n-1}) \\ &= (2B_{n-1} + 1) \cup 2B_n \\ &= (B_{2n-2} + 1) \cup 2B_n \\ &= A_{2n-1} \cup 2B_n, \end{aligned}

B2n=A2n−1∪B2n−1−A2n−1∩B2n−1=A2n−1∪(A2n−1∪2Bn)−A2n−1∩(A2n−1∪2Bn)=A2n−1∪2Bn−A2n−1=2Bn−A2n−1=2Bn−(2An−1)=2Bn, \begin{aligned} B_{2n} &= A_{2n-1} \cup B_{2n-1} - A_{2n-1} \cap B_{2n-1} \\ &= A_{2n-1} \cup (A_{2n-1} \cup 2B_n) - A_{2n-1} \cap (A_{2n-1} \cup 2B_n) \\ &= A_{2n-1} \cup 2B_n - A_{2n-1} \\ &= 2B_n - A_{2n-1} \\ &= 2B_n - (2A_n - 1) \\ &= 2B_n, \end{aligned}
where the last equality is because 2Bn2B_n contains only even numbers while 2An−12A_n - 1 contains only odd numbers. Since (c) is finished, (b) is also finished.

Regarding (d): borrowing the earlier equation B2n−1=(2Bn−1+1)∪2BnB_{2n-1} = (2B_{n-1}+1)\cup2B_n, since 0∈Bn−10 \in B_{n-1} we have 1∈B2n−11 \in B_{2n-1}.

Finally we prove: Bn={0}B_n = \{0\} if and only if n=2kn = 2^k (k≥0k \ge 0). The "⇐\Leftarrow" direction can be completed using B1={0}B_1 = \{0\} together with (c). As for the "⇒\Rightarrow" direction, for all n≠2kn \ne 2^k it must be that n=2kmn = 2^k m where k≥0k \ge 0 and mm is a positive odd number not equal to 1. If k=0k=0 then nn is odd, and by (d) we know 1∈Bn≠{0}1 \in B_n \ne \{0\}. If k≥1k \ge 1 then Bn=2kBmB_n = 2^k B_m, so 2k∈Bn≠{0}2^k \in B_n \ne \{0\}. This completes the proof!

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 translated into English from zh; metadata (topic, difficulty) added by this project.