Maths Olympiad Prep

Track / Stage 8 / 28 of 180 #1728 of 1964

Problem 1728

IMO Shortlist mid-range; USAMO P2/P5
Algebra Difficulty 8.1 Prove it IMO2024 Shortlisted Problems · IMO

Let nn be a positive integer. Find the minimum possible value of
S=20x02+21x12++2nxn2 S = 2^{0} x_{0}^{2} + 2^{1} x_{1}^{2} + \cdots + 2^{n} x_{n}^{2}
where x0,x1,,xnx_{0}, x_{1}, \ldots, x_{n} are nonnegative integers such that x0+x1++xn=nx_{0} + x_{1} + \cdots + x_{n} = n.

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Official solutions — 2

Solution 1

Answer: The minimum value is n(n+1)2\frac{n(n+1)}{2}.

For a fixed nn, let f(n)f(n) denote the minimum possible value of SS. Consider the following variant: among all infinite sequences of nonnegative integers x0,x1,x_{0}, x_{1}, \ldots, only finitely many of which are nonzero, satisfying x0+x1+=nx_{0} + x_{1} + \cdots = n, let g(n)g(n) denote the minimum possible value of
T=20x02+21x12+22x22+ T = 2^{0} x_{0}^{2} + 2^{1} x_{1}^{2} + 2^{2} x_{2}^{2} + \cdots
It is clear that g(n)f(n)g(n) \leqslant f(n). Conversely, it is easy to see that if a sequence x0,x1,x_{0}, x_{1}, \ldots achieves the minimum of g(n)g(n), then x0x1x_{0} \geqslant x_{1} \geqslant \cdots and thus xn+1=xn+2==0x_{n+1} = x_{n+2} = \cdots = 0. In particular, f(n)=g(n)f(n) = g(n).

Now, we hope to get an inductive formula for g(n)g(n).
Note that, in order to minimise TT for n1n \geqslant 1, we must have x01x_{0} \geqslant 1 since the sequence (xix_{i}) is nonincreasing. Note that the minimal value of
21x12+22x22+=2(20x12+21x22+) 2^{1} x_{1}^{2} + 2^{2} x_{2}^{2} + \cdots = 2\left(2^{0} x_{1}^{2} + 2^{1} x_{2}^{2} + \cdots\right)
over all infinite sequences of nonnegative integers with x1+x2+=mx_{1} + x_{2} + \cdots = m is exactly 2g(m)2 g(m). As a result, for n1n \geqslant 1 we have
g(n)=minx0{1,2,,n}(x02+2g(nx0)). g(n) = \min_{x_{0} \in \{1,2, \ldots, n\}} \left(x_{0}^{2} + 2 g\left(n - x_{0}\right)\right).
We now prove g(n)=n(n+1)2g(n) = \frac{n(n+1)}{2} by induction. It is clear that g(0)=0g(0) = 0. Assume that this has been proved for n=0,1,,N1n = 0, 1, \ldots, N-1. Then,
x02+2g(Nx0)=x02+(Nx0)(Nx0+1) =2x02(2N+1)x0+N(N+1)=12[(2x0N)(2x0N1)+N2+N] \begin{align*} x_{0}^{2} + 2 g\left(N - x_{0}\right) & = x_{0}^{2} + \left(N - x_{0}\right)\left(N - x_{0} + 1\right) \ & = 2 x_{0}^{2} - (2N + 1)x_{0} + N(N+1) \\ & = \frac{1}{2}\left[\left(2x_{0} - N\right)\left(2x_{0} - N - 1\right) + N^{2} + N\right] \end{align*}
The product of two consecutive integers (2x0N)(2x0N1)\left(2x_{0} - N\right)\left(2x_{0} - N - 1\right) is always nonnegative, and it is zero precisely when 2x02x_{0} is the even number in {N,N+1}\{N, N+1\}. Thus the minimum of the final expression in equation (1) is 12(N2+N)\frac{1}{2}\left(N^{2} + N\right), so g(N)=N(N+1)2g(N) = \frac{N(N+1)}{2}, completing the inductive proof.

Solution 2

Consider the following table of numbers, where the row and column indices start from 00, and ai,j=2i(2j+1)a_{i, j} = 2^{i}(2j+1) for i,j0i, j \geqslant 0.

| | j=0j=0 | 1 | 2 | 3 | 4 | 5 | \cdots |
|---:|---:|---:|---:|---:|---:|---:|---:|
| i=0i=0 | 1 | 3 | 5 | 7 | 9 | 11 | |
| 1 | 2 | 6 | 10 | 14 | 18 | 22 | |
| 2 | 4 | 12 | 20 | 28 | 36 | 44 | |
| 3 | 8 | 24 | 40 | 56 | 72 | 88 | |
| 4 | 16 | 48 | 80 | 112 | 144 | 176 | |
| \vdots | | | | | | | |

Every number can be written uniquely as a product of a power of 22 and an odd number so every positive integer appears exactly once in the table above. It is easy to see that numbers in each row and each column are strictly increasing. Since the sum of the first xx odd positive integers is x2x^{2}, the sum of the first xkx_{k} numbers in the kthk^{\text{th}} row is 2kxk22^{k} x_{k}^{2}, the kthk^{\text{th}} term appearing in SS.

Thus, the sum SS can be interpreted as the result of taking a total of nn numbers from the first nn rows of the table such that we take the leftmost xkx_{k} numbers from row kk (where k=1nxk=n\sum_{k=1}^{n} x_{k} = n), and then computing the sum of these nn numbers. In particular, the minimum possible value of SS is the same as the sum of the smallest nn numbers in this table, since every row and every column of the table is strictly increasing.

Moreover, the smallest nn numbers, namely 1,2,,n1, 2, \ldots, n, appear in the first nn rows, so the minimum of SS is
1+2++n=n(n+1)2. 1 + 2 + \cdots + n = \frac{n(n+1)}{2}.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.