Maths Olympiad Prep

Library / /202 of 397

Combinatorics Difficulty 5.9 AIME, harder Prove it Taiwan

There are nn couples attending a kingdom's banquet. The husbands sit at one round table, and the wives sit at another round table. The King and Queen (not included among these nn couples) are to shake hands with them. Suppose the King starts shaking hands from a certain gentleman, and the Queen starts shaking hands from that gentleman's wife. Consider two methods:
(i) The King shakes hands with all the gentlemen in clockwise order. When the King shakes hands with a certain gentleman, the Queen moves clockwise to that gentleman's wife and shakes hands with her. Suppose that by the time the King returns to the original gentleman, the Queen has gone around the table aa times.
(ii) The Queen shakes hands with all the ladies in clockwise order. When the Queen shakes hands with a certain lady, the King moves clockwise to that lady's husband and shakes hands with him. Suppose that by the time the Queen returns to the original lady, the King has gone around the table bb times.
Find: the maximum possible value of ab|a - b|.

Solution

Answer: If n=m2d,0d<mn = m^2 - d, 0 \le d < m, then the maximum value is (n2m)(n - 2m); if n=m2md,0d<m1n = m^2 - m - d, 0 \le d < m - 1, then the maximum value is (n2m+1)(n - 2m + 1).

- Estimation: Without loss of generality, assume a>ba > b. Let the starting points of the host gentleman and hostess lady be the reference points of the two tables, numbered clockwise 0n10 \sim n-1 in order, and let the wife of gentleman ii be numbered xix_i. Considering the situations in both methods when the host gentleman and hostess lady pass by 00, we obtain:
a1={i[n1]xi>xi+1} a - 1 = |\{i \in [n-1] \mid x_i > x_{i+1}\}|
b1={i[n1]xj=i,xl=i+1,l<j} b - 1 = |\{i \in [n-1] \mid x_j = i, x_l = i+1, l < j\}|
(where [n1]:={1,2,,n1}[n-1] := \{1, 2, \dots, n-1\})

Let x1,,xr1;xr1+1,,xr2;;xrk1+1,,xrkx_1, \dots, x_{r_1}; x_{r_1+1}, \dots, x_{r_2}; \dots; x_{r_{k-1}+1}, \dots, x_{r_k} be kk decreasing sequences with xrt<xrt+1x_{r_t} < x_{r_{t+1}}, then we have a1=nka-1=n-k.

Consider treating [n1][n-1] as points arranged in order; if xj=i,xl=i+1,l>jx_j = i, x_l = i+1, l > j, then connect jj and ll with a line segment. This diagram will form some chains (each point connects to at most one line on the left and at most one on the right), and the leftmost end of a chain is precisely an ll satisfying xj=i,xl=i+1,l<jx_j = i, x_l = i+1, l < j. However, the number of chains is greater than or equal to rt+1rtr_{t+1} - r_t (for all t=1,2,,kt=1, 2, \dots, k), because rt+1,,rt+1r_t + 1, \dots, r_{t+1} are not connected to each other, and thus we obtain

b1n1k. b-1 \ge \left\lfloor \frac{n-1}{k} \right\rfloor.
Furthermore, we obtain:
abnkn1k a-b \le n-k - \left\lfloor \frac{n-1}{k} \right\rfloor
If n=m2d,0d<mn = m^2 - d, 0 \le d < m, then abn2ma - b \le n - 2m.
If n=m2md,0d<m1n = m^2 - m - d, 0 \le d < m - 1, then abn2m+1a - b \le n - 2m + 1.

- Construction:

* If n=m2d,0d<mn = m^2 - d, 0 \le d < m, then let {xrt1+1,xrt1+2,,xrt}\{x_{r_{t-1}+1}, x_{r_{t-1}+2}, \dots, x_{r_t}\} be the decreasing sequence formed by the numbers in [n1][n-1] congruent to tt modulo mm. Then in this case k=mk=m, and the number of chains is also mm (the chain heads being 1,m+1,,m22m+1,m2m+11, m+1, \dots, m^2-2m+1, m^2-m+1 respectively), so in this case ab=n2m|a-b| = n-2m.

* If n=m2md,0d<m1n = m^2 - m - d, 0 \le d < m-1, then let {xrt1+1,xrt1+2,,xrt}\{x_{r_{t-1}+1}, x_{r_{t-1}+2}, \dots, x_{r_t}\} be the decreasing sequence formed by the numbers in [n1][n-1] congruent to tt modulo mm. Then in this case k=mk=m, and the number of chains is m1m-1 (the chain heads being 1,m+1,,m22m+11, m+1, \dots, m^2-2m+1 respectively), so in this case ab=n2m+1|a-b| = n - 2m + 1.

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.