So many cases, if only there was a shortcut

Algebra Level 3

Let x 1 , x 2 , x 3 , , x 2017 x_1, x_2, x_3, \ldots, x_{2017} be positive integers such that x 1 + x 2 + + x 2017 = 3018. x_1+x_2+\cdots+x_{2017} = 3018.

Find the minimum value of x 1 2 + x 2 2 + + x 2017 2 . x_1^2+x_2^2+\cdots+x_{2017}^2.


The answer is 5020.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

Sharky Kesa
May 13, 2018

Note the following is true for positive integers x i x_i : ( x i 1 ) ( x i 2 ) 0 (x_i-1)(x_i-2) \geq 0 Simplifying yields x i 2 3 x i 2 x_i^2 \geq 3x_i-2 . Summing this over i = 1 , 2 , . . . , 2017 i=1, 2, ..., 2017 gives x 1 2 + x 2 2 + + x 2017 2 3 ( x 1 + x 2 + + x 2017 ) 4034 = 9054 4034 = 5020 x_1^2+x_2^2+\ldots+x_{2017}^2 \geq 3(x_1+x_2+\ldots+x_{2017})-4034 = 9054-4034=5020 Thus, the expression is greater than or equal to 5020 5020 wih equality occurring when x i { 1 , 2 } x_i \in \{1, 2\} . Simplifying this yields 1001 1001 of the x i x_i terms are 2 2 , and 1016 1016 are 1 1 , which is equality.

Nice Solution! But I did it the trivial way by first realizing that all x=1 or 2 would give the sum less or greater than, respectively, than the required one. BTW Congrats on coming 7th in Fall 2018, man.

Department 8 - 2 years, 6 months ago
Nick Turtle
May 13, 2018

Here's how I solved it intuitively, but it's not as nearly as elegant as @Sharky Kesa 's solution.

Convince yourself that, if a 1 + a 2 + + a n = b 1 + b 2 + + b n a_1+a_2+\cdots+a_n=b_1+b_2+\cdots+b_n ,

a 1 2 + a 2 2 + + a n 2 < b 1 2 + b 2 2 + + b n 2 a_1^2+a_2^2+\cdots+a_n^2<b_1^2+b_2^2+\cdots+b_n^2

holds true if and only if a 1 , a 2 , , a n a_1,a_2,\cdots,a_n have a smaller "spread" than b 1 , b 2 , , b n b_1,b_2,\cdots,b_n . This can be more clearly seen if you consider the inequality a 2 + b 2 < ( a d ) 2 + ( b + d ) 2 a^2+b^2<(a-d)^2+(b+d)^2 , which holds true for positive a , b , d a,b,d such that b > a b>a .

(Turns out that this can be expressed more formally: x qm 2 = x am 2 + σ x 2 x_{\text{qm}}^2=x_{\text{am}}^2+\sigma_x^2 where x qm x_{\text{qm}} is the quadratic mean, x am x_{\text{am}} the arithmetic mean, and σ x \sigma_x the standard deviation. Thus, for smaller spread (decreasing σ x \sigma_x ) while keeping arithmetic mean constant, the quadratic mean will be smaller.)

With the problem, we want x 1 , x 2 , , x 2017 x_1,x_2,\cdots,x_{2017} to be as close as possible together. Since their sum is 3018 3018 , some of them should be 1 1 's, and the remaining then should be 2 2 's. The only way to arrange this is if 1016 1016 of them are 1 1 's and the remaining 1001 1001 are 2 2 's.

Thus, the minimum value is 1016 1 2 + 1001 2 2 = 5020 1016\cdot 1^2+1001\cdot 2^2=5020 .

Aaghaz Mahajan
May 14, 2018

For positive reals, we see the equality holds when each variable is around 1.49....
If we constraint ourselves to positive integers, we see that each x must be in the vicinity of the above number.......that means x can be 1 or 2
Assuming there are "k" ones and "2017-k" twos, we can add up and find that k equals 1016........
Hence the minimum occurs and comes out to be 5020..........!!


@Sharky Kesa @Nick Turtle Is my solution okay??

Aaghaz Mahajan - 3 years ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...