Maths Olympiad Prep

Library / /20 of 24

, 2023

Combinatorics Difficulty 5.8 AIME, harder Prove it United States

Problem:

Let n>1n > 1 be a positive integer. Claire writes nn distinct positive real numbers x1,x2,,xnx_{1}, x_{2}, \ldots, x_{n} in a row on a blackboard. In a move, William can erase a number yy and replace it with either 1y\frac{1}{y} or y+1y+1 at the same location. His goal is to make a sequence of moves such that after he is done, the numbers are strictly increasing from left to right.

a. Prove that there exists a positive constant AA, independent of nn, such that William can always reach his goal in at most AnlognA n \log n moves.

b. Prove that there exists a positive constant BB, independent of nn, such that Claire can choose the initial numbers such that William cannot attain his goal in less than BnlognB n \log n moves.

Solution

Solution:

We use divide and conquer. The base case n=1n=1 is clear. Let f(n)f(n) denote the number of moves required for nn numbers. Let x=n/2x=\lceil n / 2\rceil and y=n/2y=\lfloor n / 2\rfloor. Then, William can reach his goal by the following process:
- Use f(x)f(x) moves to make the first xx numbers a strictly decreasing sequence.
- Use f(y)f(y) moves to make the last yy numbers a strictly decreasing sequence.
- Add one to all the numbers, taking nn moves. At this point, all the numbers are greater than 11.
- Take the reciprocal of all the numbers, using nn moves. At this point, all the numbers are in (0,1)(0,1). Moreover, the first xx numbers and the last yy numbers form a strictly increasing sequence.
- Finally, add one to the last yy numbers.
Hence, we have
f(n)f(n2)+f(n2)+2n+n2 f(n) \leq f\left(\left\lceil\frac{n}{2}\right\rceil\right)+f\left(\left\lfloor\frac{n}{2}\right\rfloor\right)+2 n+\frac{n}{2}
giving f(n)=O(nlogn)f(n)=O(n \log n).

Double Counting Solution to (b)

Take B=0.01B=0.01, and assume nn is sufficiently large. Assume for contradiction that William has an algorithm for all possible initial numbers. We first note that if William uses less than xx moves, then he can keep adding one to the last number until he uses exactly xx moves. We henceforth assume that William has an algorithm that uses x0.01nlognx \leq 0.01 n \log n moves.
Take arbitrary initial numbers. We claim that if William always has an algorithm that results in the final numbers being increasing after xx moves, then he in fact has an algorithm which can result in the final numbers being in any given ordering after xx moves. This is because he can permute the indices of the initial numbers, operate on the permuted numbers to be increasing, and then take the permutation back such that the final numbers are now in the specified ordering after applying xx moves (note that each move only acts and depends on one of the values.) In particular, this implies that by applying xx moves, William can produce n!\geq n! possible final states. We now claim this is impossible.
Indeed, there are (x+n1n1)\binom{x+n-1}{n-1} ways to distribute xx moves to each of the nn numbers. Moreover, there are two options for each move, giving 2x2^{x} choices across all the xx moves. Thus, William has
2x(x+n1n1) 2^{x}\binom{x+n-1}{n-1}
choices of moves. When nn is sufficiently large, we have
2x(x+n1n1)20.01nlogn(x+n1)n1(n1)!e0.01nlogn(0.1nlogn)n(n10)n=n0.01n(logn)n=n0.01nnloglogn<(n10)n<n! \begin{aligned} 2^{x}\binom{x+n-1}{n-1} & \leq 2^{0.01 n \log n} \frac{(x+n-1)^{n-1}}{(n-1)!} \\ & \leq e^{0.01 n \log n} \frac{(0.1 n \log n)^{n}}{\left(\frac{n}{10}\right)^{n}} \\ & = n^{0.01 n}(\log n)^{n} \\ & = n^{0.01 n} n^{\log \log n}<\left(\frac{n}{10}\right)^{n}<n! \end{aligned}
which is a contradiction.

Constructive Solution to (b)

By shifting BB it suffices to prove this for sufficiently large nn (for the smaller ones just make sure Bnlogn<1B n \log n<1.) We now prove the result when n=k2n=k^{2} is a perfect square; the general case follows by shifting BB appropriately. Choose the xix_{i} such that
xk2k+1>xk22k+1>>x1>xk2k+2>xk22k+2>>x2>xk2>xk2k>>xk. \begin{gathered} x_{k^{2}-k+1}>x_{k^{2}-2 k+1}>\ldots>x_{1} \\ >x_{k^{2}-k+2}>x_{k^{2}-2 k+2}>\ldots>x_{2} \\ \ldots \\ >x_{k^{2}}>x_{k^{2}-k}>\ldots>x_{k} . \end{gathered}
One may check that there exists no strictly increasing or decreasing subsequence of the {xi}\{x_{i}\} of length >k>k. Now, if William uses less than Bk2log(k2)B k^{2} \log \left(k^{2}\right) moves, then evidently there exists at least k2/2k^{2} / 2 elements on which he applies at most 2Blog(k2)2 B \log \left(k^{2}\right) moves. Let 2Blog(k2)=N\left\lceil 2 B \log \left(k^{2}\right)\right\rceil=N; note that the number of possible sequences of moves that can be applied to each of these k2/2\leq k^{2} / 2 elements is 2N+2N1++1<2N+1\leq 2^{N}+2^{N-1}+\ldots+1<2^{N+1}. Note that N=Θ(logk2)N=\Theta\left(\log k^{2}\right) and so 2N+1=kΘ(1)2^{N+1}=k^{\Theta(1)}; hence by choosing a sufficiently small BB we can ensure that 2N+1<k/22^{N+1}<k / 2. This now implies that there exists a set SS of >k>k elements on which the same sequence of moves are applied. Note by our choice of {xi}\{x_{i}\} we know that within SS, there exists both a pair (xi,xj)(x_{i}, x_{j}) for which i<ji<j and xi<xjx_{i}<x_{j}, and a pair where i<ji<j yet xi>xjx_{i}>x_{j}. But note that any composition of moves acts as a rational function which is monotonic on (0,)(0, \infty) (as it has no roots or poles within the given domain.) Hence this implies that either the increasing or decreasing pair must become decreasing after being operated upon by the same sequence of moves, and hence William has not achieved his goal, a contradiction. This thus proves the problem for an appropriate choice of BB.

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.