Maths Olympiad Prep

Library / /59 of 61

Combinatorics Difficulty 7.7 National Olympiad, round 2 Prove it Canada

Problem:

Let n2n \geq 2 be an integer. Initially, the number 11 is written nn times on a board. Every minute, Vishal picks two numbers written on the board, say aa and bb, erases them, and writes either a+ba+b or min{a2,b2}\min \{a^{2}, b^{2}\}. After n1n-1 minutes there is one number left on the board. Let the largest possible value for this final number be f(n)f(n). Prove that
2n/3<f(n)3n/3 2^{n / 3}<f(n) \leq 3^{n / 3}

Solution

Solution:

Clearly f(n)f(n) is a strictly increasing function, as we can form f(n1)f(n-1) with n1n-1 ones, and add the final one. However, we can do better; assume Vishal generates f(n)f(n) on the board. After n2n-2 minutes, there are two numbers left, say they were formed by xx ones and yy ones, where x+y=nx+y=n. Clearly the numbers are at most f(x),f(y)f(x), f(y) (and can be made to be equal to f(x),f(y)f(x), f(y)), and therefore we obtain
f(n)=maxx+y=n,1xyn1(max(f(x)+f(y),f(x)2)) f(n)=\max _{x+y=n, 1 \leq x \leq y \leq n-1}\left(\max \left(f(x)+f(y), f(x)^{2}\right)\right)
where we used the fact that ff is increasing to get that min(f(x)2,f(y)2)=f(x)2\min \left(f(x)^{2}, f(y)^{2}\right)=f(x)^{2} when xyx \leq y. In particular, f(n+1)f(n)+1f(n+1) \geq f(n)+1, and f(2n)f(n)2f(2 n) \geq f(n)^{2} for all positive integers nn.

Upper bound:

First proof of upper bound. We use induction. We can check that f(n)=nf(n)=n for n4n \leq 4, and these all satisfy the bound f(n)=n3n/3f(n)=n \leq 3^{n / 3}. Assume it is true for all m<nm<n (some n5n \geq 5), and with x,yx, y as in equation above we have
f(x)2f(n2)2(3n/6)2=3n/3 f(x)^{2} \leq f\left(\left\lfloor\frac{n}{2}\right\rfloor\right)^{2} \leq\left(3^{n / 6}\right)^{2}=3^{n / 3}
as desired. It thus remains to show that f(x)+f(y)3n/3f(x)+f(y) \leq 3^{n / 3}. By induction, it suffices to prove that
3x/3+3y/33(x+y)/3 3^{x / 3}+3^{y / 3} \leq 3^{(x+y) / 3}
for 1xyn11 \leq x \leq y \leq n-1 and x+y=nx+y=n. This is equivalent to
1+3(yx)/33y/3 1+3^{(y-x) / 3} \leq 3^{y / 3}
Let w=3(yx)/3w=3^{(y-x) / 3}, and we require 3x/3ww+13^{x / 3} w \geq w+1. If x2x \geq 2, then this is true as w1w \geq 1, and if x=1x=1 then w=3(n2)/33w=3^{(n-2) / 3} \geq 3 and the result is still true. Thus all terms in the equation are at most 3n/33^{n / 3}, and so f(n)3n/3f(n) \leq 3^{n / 3}, and the upper bound is proven.

Second proof of upper bound. Consider a second game with the same rules but in which Vishal can replace aa and bb by either a+ba+b or aba b. Let g(n)g(n) be the largest possible value for this new game. Then f(n)g(n)f(n) \leq g(n) because min{a2,b2}ab\min \{a^{2}, b^{2}\} \leq a b.

We can check g(n)=ng(n)=n for n4n \leq 4, so g(n)3n/3g(n) \leq 3^{n / 3} for these values. If xx and yy are both bigger than 11, then g(x)+g(y)g(x)g(y)g(x)+g(y) \leq g(x) g(y). Therefore, for n>4n>4, we have that
g(n)=max{g(n1)+1,max1xn1g(x)g(nx)} g(n)=\max \{g(n-1)+1, \max _{1 \leq x \leq n-1} g(x) g(n-x)\}
Now proceed similarly to the first proof. Assume n>4n>4 and g(m)3m/3g(m) \leq 3^{m / 3} for all m<nm<n. If 1xn11 \leq x \leq n-1, then g(x)g(nx)3x/33(nx)/3=3n/3g(x) g(n-x) \leq 3^{x / 3} 3^{(n-x) / 3}=3^{n / 3}. And g(n1)+13(n1)/3+1g(n-1)+1 \leq 3^{(n-1) / 3}+1, which is shown to be less than 3n/33^{n / 3} in the first proof. It follows that f(n)g(n)3n/3f(n) \leq g(n) \leq 3^{n / 3}.

Lower bound:

First proof of lower bound. We begin with a lemma.

Lemma 1. Let mm be a nonnegative integer. Then
f(2m)22m1andf(32m)32m f\left(2^{m}\right) \geq 2^{2^{m-1}} \quad \text{and} \quad f\left(3 \cdot 2^{m}\right) \geq 3^{2^{m}}
Proof. We prove the lemma by induction. One can check that f(n)=nf(n)=n for n3n \leq 3, which proves the lemma for m=0m=0. For a general m>0m>0, we get
f(2m)f(2m1)2(22m2)2=22m1f(32m)f(32m1)2(32m1)2=32m \begin{gathered} f\left(2^{m}\right) \geq f\left(2^{m-1}\right)^{2} \geq\left(2^{2^{m-2}}\right)^{2}=2^{2^{m-1}} \\ f\left(3 \cdot 2^{m}\right) \geq f\left(3 \cdot 2^{m-1}\right)^{2} \geq\left(3^{2^{m-1}}\right)^{2}=3^{2^{m}} \end{gathered}
by induction, as required.

(This lemma can also be proved more constructively. Briefly, if n=2mn=2^{m}, then partition the 11's on the board into 2m12^{m-1} pairs, and then add each pair to get 2m12^{m-1} 22's (2=220)(2=2^{2^{0}}); then multiply pairs of 22's to get 2m22^{m-2} 44's (4=221)(4=2^{2^{1}}); then multiply pairs of 44's to get 2m32^{m-3} 1616's (16=222)(16=2^{2^{2}}); and so on, until there are 2(=21)2(=2^{1}) copies of 22m22^{2^{m-2}}, which then gets replaced with 22m12^{2^{m-1}}. The process is similar for n=32mn=3 \cdot 2^{m}, except that the first step is to partition the 11's into 2m2^{m} groups of 33, and then use addition within each group to get 2m2^{m} 33's on the board.)

Now assume 2xn<32x12^{x} \leq n<3 \cdot 2^{x-1} for some integer xx. Then we have
f(n)f(2x)22x1>2n/3 f(n) \geq f\left(2^{x}\right) \geq 2^{2^{x-1}}>2^{n / 3}
as required. If no such xx exists, then there exists an integer xx such that 32x1n<2x+13 \cdot 2^{x-1} \leq n<2^{x+1}. In this case, we have
f(n)f(32x1)32x1>22x+1/3>2n/3 f(n) \geq f\left(3 \cdot 2^{x-1}\right) \geq 3^{2^{x-1}}>2^{2^{x+1} / 3}>2^{n / 3}
where the second last inequality is equivalent to 2x1log(3)2x+13log(2)2^{x-1} \log (3) \geq \frac{2^{x+1}}{3} \log (2), and by dividing out 2x2^{x} and clearing the denominator this is equivalent to 3log(3)4log23 \log (3) \geq 4 \log 2, which is true as 33=27>16=243^{3}=27>16=2^{4}.

Second proof of lower bound. We shall prove the stronger result f(n)2(n+1)/3f(n) \geq 2^{(n+1) / 3} for n2n \geq 2 by induction. One can check that f(n)=nf(n)=n for n=2,3,4n=2,3,4, which proves the result for these values. Assume that n5n \geq 5 and that f(k)2(k+1)/3f(k) \geq 2^{(k+1) / 3} for all k=2,3,,n1k=2,3, \ldots, n-1. Then
f(n)f(n/2)2(2(n/2+1)/3)2since n22=2(2n/2+2)/32(n+1)/3since n2n12. \begin{array}{rlr} f(n) & \geq f(\lfloor n / 2\rfloor)^{2} & \\ & \geq\left(2^{(\lfloor n / 2\rfloor+1) / 3}\right)^{2} \quad \quad \text{since }\left\lfloor\frac{n}{2}\right\rfloor \geq 2 \\ & =2^{(2\lfloor n / 2\rfloor+2) / 3} \quad \\ & \geq 2^{(n+1) / 3} \quad \text{since }\left\lfloor\frac{n}{2}\right\rfloor \geq \frac{n-1}{2} . \end{array}
The result follows by induction.

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.