Maths Olympiad Prep

Track / Stage 6 / 98 of 400 #1098 of 1964

Problem 1098

National olympiad, first round
Combinatorics Difficulty 6.1 Find the answer

Let nn be an integer with n2n \geqslant 2. On a slope of a mountain, n2n^{2} checkpoints are marked, numbered from 1 to n2n^{2} from the bottom to the top. Each of two cable car companies, AA and BB, operates kk cable cars numbered from 1 to kk; each cable car provides a transfer from some checkpoint to a higher one. For each company, and for any ii and jj with 1i<jk1 \leqslant i<j \leqslant k, the starting point of car jj is higher than the starting point of car ii; similarly, the finishing point of car jj is higher than the finishing point of car ii. Say that two checkpoints are linked by some company if one can start from the lower checkpoint and reach the higher one by using one or more cars of that company (no movement on foot is allowed). Determine the smallest kk for which one can guarantee that there are two checkpoints that are linked by each of the two companies. (India) Answer: k=n2n+1k=n^{2}-n+1.

A number or a short expression. Spacing and $ signs are ignored.

Official solution

We start with showing that for any kn2nk \leqslant n^{2}-n there may be no pair of checkpoints linked by both companies. Clearly, it suffices to provide such an example for k=n2nk=n^{2}-n. Let company AA connect the pairs of checkpoints of the form (i,i+1)(i, i+1), where nin \nmid i. Then all pairs of checkpoints (i,j)(i, j) linked by AA satisfy i/n=j/n\lceil i / n\rceil=\lceil j / n\rceil. Let company BB connect the pairs of the form (i,i+n)(i, i+n), where 1in2n1 \leqslant i \leqslant n^{2}-n. Then pairs of checkpoints (i,j)(i, j) linked by BB satisfy ij(modn)i \equiv j(\bmod n). Clearly, no pair (i,j)(i, j) satisfies both conditions, so there is no pair linked by both companies. Now we show that for k=n2n+1k=n^{2}-n+1 there always exist two required checkpoints. Define an AA-chain as a sequence of checkpoints a1<a2<<ata_{1}<a_{2}<\ldots<a_{t} such that company AA connects aia_{i} with ai+1a_{i+1} for all 1it11 \leqslant i \leqslant t-1, but there is no AA-car transferring from some checkpoint to a1a_{1} and no AA-car transferring from ata_{t} to any other checkpoint. Define BB-chains similarly. Moving forth and back, one easily sees that any checkpoint is included in a unique AA-chain (possibly consisting of that single checkpoint), as well as in a unique BB-chain. Now, put each checkpoint into a correspondence to the pair of the AA-chain and the BB-chain it belongs to. All finishing points of AA-cars are distinct, so there are n2k=n1n^{2}-k=n-1 checkpoints that are not such finishing points. Each of them is a starting point of a unique AA-chain, so the number of AA-chains is n1n-1. Similarly, the number of BB-chains also equals n1n-1. Hence, there are (n1)2(n-1)^{2} pairs consisting of an AA- and a BB-chain. Therefore, two of the n2n^{2} checkpoints correspond to the same pair, so that they belong to the same AA-chain, as well as to the same BB-chain. This means that they are linked by both companies, as required. Comment 1. The condition that the ith i^{\text {th }} car starts and finishes lower than the jth j^{\text {th }} one is used only in the "moving forth and back" argument and in the counting of starting points of the chains. In both cases, the following weaker assumption suffices: No two cars of the same company start at the same checkpoint, and no two such cars finish at the same checkpoint. Thus, the problem conditions could be weakened in this way, with no affect on the solution. Comment 2. If the number of checkpoints were NN, then the answer would be NN+1N-\lceil\sqrt{N}\rceil+1. The solution above works verbatim for this generalization.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.