67th International Mathematical Olympiad

Problem 3

Natural-Language Solution

Problem

Let nn be a positive integer. Liu Bang and Xiang Yu have a stick of length 11 and want to divide it between themselves. Liu first marks at most nn points on the stick, and then Xiang marks at most nn points on the stick. All marked points are distinct. The stick is cut at all marked points. Liu and Xiang then take turns claiming any unclaimed piece, with Liu moving first, and each aims to maximize the total length obtained.

Determine the largest real number cc such that Liu can guarantee pieces of total length at least cc, regardless of Xiang's play.

Solution

The largest guaranteed length is

cn=2n2n+11. \boxed{c_n=\frac{2^n}{2^{n+1}-1}}.

Set

δ=12n+11. \delta=\frac{1}{2^{n+1}-1}.

Then

cn=1+δ2. c_n=\frac{1+\delta}{2}.

If the final piece lengths, sorted in nonincreasing order, are x1x2x_1\ge x_2\ge\cdots, optimal play gives Liu the odd-indexed pieces. His total is therefore

1+A2,A=x1x2+x3x4+, \frac{1+A}{2}, \qquad A=x_1-x_2+x_3-x_4+\cdots,

because the sum of all pieces is 11.

This is the value of the draft. Liu can obtain at least the odd-indexed sum by always taking a largest remaining piece. Before his jjth turn, at most 2j22j-2 pieces have been claimed, so at least one of x1,,x2j1x_1,\ldots,x_{2j-1} remains; Liu's choice is therefore worth at least x2j1x_{2j-1}.

For the reverse inequality, use induction on the number of pieces. If Liu first takes xix_i, then Xiang is the first player on the sorted list with xix_i removed. By the induction hypothesis, Xiang can secure the odd-indexed sum of that shorter list. This sum is at least

E=x2+x4+x6+. E=x_2+x_4+x_6+\cdots.

Indeed, before the removed term, pair each x2j1x_{2j-1} with x2jx_{2j} and use x2j1x2jx_{2j-1}\ge x_{2j}; after the removed term, the terms contributing to the shorter list's odd-indexed sum line up exactly with the remaining even-indexed terms of the original list. Thus Liu receives at most 1E=x1+x3+x5+1-E=x_1+x_3+x_5+\cdots. Together with the greedy lower bound, this proves the claimed draft value.

Liu's lower bound

Liu divides the stick initially into the n+1n+1 geometrically increasing pieces

δ,2δ,4δ,,2nδ. \delta,2\delta,4\delta,\ldots,2^n\delta.

Their sum is (2n+11)δ=1(2^{n+1}-1)\delta=1, so this uses exactly nn marks.

After Xiang adds at most nn marks, there are at most 2n+12n+1 final pieces. Tag each final piece by the initial geometric piece from which it came, and sort the tagged pieces by length. Pair consecutive sorted pieces:

(x1,x2),(x3,x4),. (x_1,x_2),(x_3,x_4),\ldots.

There are fewer such pairs than the n+1n+1 possible tags. Form a graph whose vertices are the tags and whose edges join the two tags in each consecutive pair, allowing loops or repeated edges. Since the graph has fewer edges than vertices, at least one connected component has no odd cycle: a component containing an odd cycle has at least as many edges as vertices, so not every component can have that property. Such a component is bipartite. Two-color it by 11 and 1-1, and color every other vertex 00. This gives coefficients in {1,0,1}\{-1,0,1\}, not all zero, with opposite coefficients at the ends of every edge.

For a fixed tag, the lengths of all pieces carrying that tag add to one of δ,2δ,,2nδ\delta,2\delta,\ldots,2^n\delta. Hence the coefficient-weighted sum of all tagged pieces is

δ(ε0+2ε1++2nεn),εi{1,0,1}. \delta(\varepsilon_0+2\varepsilon_1+\cdots+2^n\varepsilon_n), \qquad \varepsilon_i\in\{-1,0,1\}.

The signed binary integer in parentheses is nonzero: at its least-index nonzero coefficient, reduction modulo 22 prevents the remaining higher powers of 22 from cancelling it. Its absolute value is therefore at least 11, so the absolute value of the weighted sum is at least δ\delta. On every consecutive pair, the two coefficients are opposite, so that pair contributes either 00 or plus or minus its length difference. If there is one unpaired final piece, its contribution has absolute value at most its length. Therefore x2j1x2j0x_{2j-1}\ge x_{2j}\ge0 bounds the absolute value of the whole weighted sum above by

(x1x2)+(x3x4)+=A. (x_1-x_2)+(x_3-x_4)+\cdots=A.

Thus AδA\ge\delta, and Liu receives at least

1+A21+δ2=cn. \frac{1+A}{2}\ge\frac{1+\delta}{2}=c_n.

Xiang's upper bound

Now let Liu make an arbitrary initial partition into rn+1r\le n+1 positive pieces.

If rnr\le n, Xiang bisects every initial piece. The final pieces occur in equal pairs, so their sorted alternating sum is 00. Liu then receives exactly 1/2cn1/2\le c_n.

It remains to consider r=n+1r=n+1. There are 2r2^r subset sums of the rr initial piece lengths, all in [0,1][0,1]. After sorting them, the 2r12^r-1 consecutive gaps have total at most 11, so one gap is at most 1/(2r1)1/(2^r-1). The corresponding subsets are distinct. Removing their common intersection leaves two disjoint, not-both-empty collections with the same difference of sums, hence with total lengths differing by at most

12r1=δ. \frac{1}{2^r-1}=\delta.

Xiang refines the pieces in these two collections greedily into equal pairs: compare the first remaining lengths, match the smaller one, split the larger one if necessary, and continue. If the two collections contain ss original pieces in total, each matching step consumes at least one currently remaining source piece, so they create at most 2s12s-1 refined pieces. Every unused initial piece is bisected. Combining the two counts gives at most 2r1=2n+12r-1=2n+1 final pieces, so Xiang uses at most nn new marks. Up to permutation, the final list consists of duplicated equal pieces and a remainder whose total length is exactly the difference between the two selected subset sums, and is therefore at most δ\delta.

When two equal entries are inserted into a sorted list, the equal values may be placed next to each other; their two opposite contributions cancel without changing the alternating sum of the remaining entries. Removing all duplicated pairs therefore leaves only the sorted remainder. Pairing adjacent terms shows that the alternating sum of a sorted nonnegative list lies between 00 and its ordinary sum, so

Aδ. A\le\delta.

Therefore Xiang can ensure that Liu receives at most

1+A21+δ2=cn. \frac{1+A}{2}\le\frac{1+\delta}{2}=c_n.

The lower and upper bounds coincide, proving the claimed value.