Suppose we have two sequences a 1 , a 2 , … a 2 0 1 4 and b 1 , b 2 , … b 2 0 1 4 such that all terms in both sequences are in the range [ 0 , 1 ] . Let M be the maximum value of ( i = 1 ∑ 2 0 1 4 a i 2 + b i 2 ) − ( i = 1 ∑ 2 0 1 4 a i ) 2 + ( i = 1 ∑ 2 0 1 4 b i ) 2 What is ⌊ M ⌋ ?
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.
I don't feel like this is a complete proof.
You need to be careful with the technicalities of your proof. You can't separate out the two terms and try and deal with them separately, as they influence each other. For example, we cannot minimize this straight-line distance and separately maximize the length of the path taken.
Even though the perimeter of the box would yield the maximum perimeter, you need to take into consideration that you are also limited to having 2014 points along the way. For example, we could reach the point ( 2 0 1 4 , 2 0 1 4 ) by choosing a i = b i = 1 , but we can't reach there with 2014 points taken along the border of a rectangle. You have not provided any justification for why we must have one of a i or b i to be 0.
Log in to reply
Yea, I feared that that was the case when writing my solution. However, I know 99% sure that the answer is still correct. I have no idea how to patch up the hole in my proof though... :(
Could you possibly give a hint, if you have figured it out?
Log in to reply
While the geometric interpretation is useful, we do not gain much intuition about the problem as it is slightly harder to compare how the change in difference of lengths.
I would approach the problem in the following way. You should see several of your ideas, though exploited in different ways.
Step 1: Assume that all variables other than a k , b k are fixed. Let A k = ∑ i = k a i and B k = ∑ i = k b i . We wish to maximize a k 2 + b k 2 − ( A k + a k ) 2 + ( B k + b k ) 2 . Show that this happens when a k , b k are either 0 or 1.
Elaboration of Step 1: This can be interpreted as the difference of lengths from the point ( A k + a k , B k + b k ) , to the points ( A k , B k ) and ( 0 , 0 ) . The level curves (i.e. where the difference of lengths is a constant) are the family of hyperbola with focus at ( A k , B k ) and 0 , 0 . Hence, we know that the maximum must occur at one of the corner points of the square [ 0 , 1 ] 2 .
Step 2: We now have w , x , y and z times when ( a i , b i ) = ( 0 , 0 ) , ( 1 , 0 ) , ( 0 , 1 ) , ( 1 , 1 ) respectively. This gives us the 4-variable inequality
x + y + z 2 − ( x + z ) 2 + ( y + z ) 2 ,
subject to w + x + y + z = 2 0 1 4 . Show that the maximum occurs when x = y = 1 0 0 7 , w = z = 0 .
Log in to reply
@Calvin Lin – I understand step 2, but I'm a little confused about Step 1. Should it be a 1 2 + b 1 2 − ( A + a 1 ) 2 + ( B + b 1 ) 2 or it is right as it is? Also, I don't see how the hyperbolas link to the maximum occurring at [ 0 , 1 ] 2 . Can you please explain it a bit more clearly?
EDIT: I think I understand what you mean in the first part of step 1. We let a 1 , a 2 , ⋯ a k − 1 , a k + 1 , ⋯ a 2 0 1 4 be constants, and let a k be the variable. Similar for b k . Then, we define A = i = k ∑ 2 0 1 4 a i and similar for B . Then, we wish to maximize a k 2 + b k 2 − ( A + a k ) 2 + ( B + b k ) 2 . Is that what you meant by the i 's?
Log in to reply
@Daniel Liu – Yes, I wanting to do it generally, then decided to do it for just 1 value, and thus screwed up my notation. I've fixed it.
I resorted to talking about hyperbolas, as it's the easiest way to convince myself about the truth of step 1, without going into the gritty details of calculus, or inequality comparison. However, I'm not too certain of it's validity.
I do not have a proof, but my consideration was this:
Let x i = ( a i , b i ) in [ 0 , 1 ] 2 , then M = ∑ i = 1 n ∣ x i ∣ − ∣ ∑ i = 1 n x i ∣ .
For n=2, this reminds of the triangle inequality ∣ x 1 ∣ + ∣ x 2 ∣ ≥ ∣ x 1 + x 2 ∣ . So we try to think of a triangle within the unit square [ 0 , 1 ] 2 , having one of the vertices fixed at the origin, and one of the sides shorter than the sum of the other two sides by the largest possible difference. M = 0 when x 1 and x 2 are in the same direction Opposite direction is not allowed, but M is at maximum when the vectors are (1,0) and (0,1).
For n=4 you'd get M= ∣ x 1 ∣ + ∣ x 2 ∣ + ∣ x 3 ∣ + ∣ x 4 ∣ − ∣ x 1 + x 2 + x 3 + x 4 ∣ , so that would be like drawing 4 vectors head to tail: travelling in 4 steps and ending up in a point such that the distance traveled minus the final distance to the origin is as large as possible. But you can only travel in directions ranging from north to east, and max. 1 unit N and/or E per step. Because the component straight away from the origin does not add to M, only the component perpendicular, and since your location will always be in the first quadrant, it is no use choosing any direction between north and east, rather choose either north or east for each step. It is like finding the most inefficient path to get to (2,2), given the direction constraint.
For n=2014 it's the same idea, we can have 1007 steps (1,0) and 1007 steps (0,1), so that we get M = 1 0 0 7 ( 2 − 2 ) .
Problem Loading...
Note Loading...
Set Loading...
I will refer to the left term as the LHS, and the right term as the RHS.
Seeing the squares inside square roots, we can approach this geometrically. Note that the LHS states the sum of the hypotenuses of the right triangles with sides a 1 , b 1 , a 2 , b 2 , , and so on, to a 2 0 1 4 , b 2 0 1 4 . The LHS, on the other hand, asks us to take the hypotenuse of a right triangle with side lengths a 1 + a 2 + ⋯ + a 2 0 1 4 and b 1 + b 2 + ⋯ + b 2 0 1 4 .
We can draw this figure out: Consider the coordinates ( a 1 , b 1 ) . The distance from the origin to this point is the first part of the LHS. Now, consider the point ( a 1 + a 2 , b 1 + b 2 ) . The distance from the first point to this point is the second part of the LHS. We can continue plotting points like this, until we arrive at ( a 1 + a 2 + ⋯ + a 2 0 1 4 , b 1 + b 2 + ⋯ + b 2 0 1 4 ) . Thus, the LHS is the length of the path taken from ( 0 , 0 ) to ( a 1 + a 2 + ⋯ + a 2 0 1 4 , b 1 + b 2 + ⋯ + b 2 0 1 4 ) , going through the points assigned along the way.
The RHS, on the other hand, is simply the straight-line distance between ( 0 , 0 ) and ( a 1 + a 2 + ⋯ + a 2 0 1 4 , b 1 + b 2 + ⋯ + b 2 0 1 4 ) . Therefore, we want to minimize this straight-line distance and maximize the length of the path taken.
Note that no matter what a i or b i is, we always walk towards our final point, never away. This is because a i , b i ≥ 0 . Therefore, the farthest path we can take to the final point (which will maximize M ) is along the border of a rectangle with ( 0 , 0 ) and ( a 1 + a 2 + ⋯ + a 2 0 1 4 , b 1 + b 2 + ⋯ + b 2 0 1 4 ) as its opposite corners.
We can achieve this by setting a i = 1 and b i = 0 for i = 1 → 1 0 0 7 , then setting a i = 0 and b i = 1 for i = 1 0 0 8 → 2 0 1 4 . Therefore, our LHS is 2 0 1 4 ( 1 ) = 2 0 1 4 , and our RHS is 1 0 0 7 2 + 1 0 0 7 2 = 1 0 0 7 2 . The difference is therefore M = 2 0 1 4 − 1 0 0 7 2 ≈ 5 8 9 . 8 9 , so ⌊ M ⌋ = 5 8 9 .