Maths Olympiad Prep

Library / /20 of 21

, 2009

Combinatorics Difficulty 7.1 National Olympiad, round 2 Prove it Vietnam

Given a positive integer nn. Denote by TT the set of the first 2n2n positive integers. Find the number of subsets SS of TT with the property: in SS there do not exist numbers a,ba, b with ab{1;n}|a-b| \in \{1; n\}.
(Note: The empty set is considered as satisfying the above property).

Solution

For each nNn \in \mathbb{N}^*, denote by dnd_n the number to be found.
Consider the table of size 2×n2 \times n. Write in each square of the table in the order from left to right and from top to bottom the numbers from 11 to 2n2n. (See Pic. 1).
Call the nn-th square of the first row and the first square of the second row special squares.
Then two numbers a,bTa, b \in T satisfy ab{1;n}|a - b| \in \{1; n\} iff they lie in two squares with common side or if they lie in the special squares.

12...n-1n
n+1n+2...2n-12n

Pic. 1

Hence, dnd_n is the number of the ways of choosing some squares of the table (including the choice of 00 squares) with the property that in each choice there are no squares with common side and the two special squares are not chosen together.
For each nNn \in \mathbb{N}^*, denote:
+ knk_n the number of choices of squares in which there are no squares with common sides; (*)
+ sns_n the number of choices of squares in which there are no squares with common sides and the two special squares are chosen.
Thus: dn=knsnd_n = k_n - s_n.

* Compute knk_n.
The set of choices satisfying (*) consists of:
+ kn1k_{n-1} choices, in each of which the square of the first column is not chosen;
+ 2tn12t_{n-1} choices, in each of which a square of the first column is chosen;
where tnt_n is the number of choices satisfying (*) from the table 2×n2 \times n cut off one square. (See Pic. 2).

...
x...

Pic. 2

Thus kn=kn1+2tn1k_n = k_{n-1} + 2t_{n-1}. (5.1)
On the other hand, choices satisfying (*) from such a table 2×n2 \times n consist of:
+ kn1k_{n-1} choices, in each of which the square with mark "x" is not chosen;
+ tn1t_{n-1} choices, in each of which the square with mark "x" is chosen.
Hence: tn=kn1+tn2t_n = k_{n-1} + t_{n-2}.
Therefore, according to (5.1) we have:
kn=kn1+2(kn2+tn2)=2kn1+kn2n3.(5.2) k_n = k_{n-1} + 2(k_{n-2} + t_{n-2}) = 2k_{n-1} + k_{n-2} \quad \forall n \ge 3. \quad (5.2)
Direct count gives: k1=3 and k2=7.(5.3) \text{Direct count gives: } k_1 = 3 \text{ and } k_2 = 7. \quad (5.3)
The recurrent relation (5.1) has characteristic equation: x22x1=0x^2 - 2x - 1 = 0.

This yields: kn=C1(1+2)n+C2(12)nn1.(5.4) \text{This yields: } k_n = C_1(1 + \sqrt{2})^n + C_2(1 - \sqrt{2})^n \quad \forall n \ge 1. \qquad (5.4)
By means of (5.3), we find: C1=1+22C_1 = \frac{1+\sqrt{2}}{2} and C2=122C_2 = \frac{1-\sqrt{2}}{2}.
Thus kn=(1+2)n+1+(12)n+12.(5.5) \text{Thus } k_n = \frac{(1 + \sqrt{2})^{n+1} + (1 - \sqrt{2})^{n+1}}{2}. \qquad (5.5)

• Compute sns_n.
We have, s1=0s_1 = 0, s2=s3=1s_2 = s_3 = 1 and for n4n \ge 4 we have:
sn=hn2,s_n = h_{n-2},
where hnh_n is the number of choices satisfying (*) from the table 2×n2 \times n cut off two squares. (See Pic. 3).

Figure 1

Pic 3

Since s3=1s_3 = 1, let h1=1h_1 = 1. Direct count gives h2=4h_2 = 4.
Let n3n \ge 3.
The choices satisfying (*) from the table 2×n2 \times n cut off two squares as above consist of:
+ kn2k_{n-2} choices, in each of which both squares AA and BB are not chosen;
+ 2tn22t_{n-2} choices, in each of which exactly one of squares AA, BB is chosen;
+ hn2h_{n-2} choices, in each of which both of squares AA and BB are chosen.
Hence hn=kn2+2tn2+hn2=kn1+hn2.n3.(5.6) \text{Hence } h_n = k_{n-2} + 2t_{n-2} + h_{n-2} = k_{n-1} + h_{n-2}. \quad \forall n \ge 3. \quad (5.6)
(5.2) and (5.6) imply 2hnkn=2hn2kn2n3. (5.2) \text{ and (5.6) imply } 2h_n - k_n = 2h_{n-2} - k_{n-2} \quad \forall n \ge 3.
Hence 2hnkn=(1)nn1. \text{Hence } 2h_n - k_n = (-1)^n \quad \forall n \ge 1.
Consequently sn=hn2=kn2+(1)n22n3. \text{Consequently } s_n = h_{n-2} = \frac{k_{n-2} + (-1)^{n-2}}{2} \quad \forall n \ge 3.
 Thus d1=3,d2=6 and dn=2knkn2+(1)n32n3, \bullet \text{ Thus } d_1 = 3, d_2 = 6 \text{ and } d_n = \frac{2k_n - k_{n-2} + (-1)^{n-3}}{2} \quad \forall n \ge 3,
where knk_n is given as in (5.5).

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 reproduced verbatim; metadata (topic, difficulty) added by this project.