Let x 1 , x 2 , x 3 , y 1 , y 2 , y 3 be the first six prime numbers. Find the largest possible sum:
i = 1 ∑ 3 j = 1 ∑ 3 x i y j .
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.
Let x = x 1 + x 2 + x 3 , y = y 1 + y 2 + y 3 , then x + y = 2 + 3 + 5 + 7 + 1 1 + 1 3 = 4 1 , and the sum in the problem is: x y = 4 1 [ ( x + y ) 2 − ( x − y ) 2 ] = 4 1 [ 4 1 2 − ( x − y ) 2 ]
To maximize x y , x and y need to be as close as possible, so we can let x = 2 + 7 + 1 1 = 2 0 and y = 3 + 5 + 1 3 = 2 1 . Hence the largest value of the sum is x y = 4 2 0 .
The sum we are looking for is i = 1 ∑ 3 ( x i y 1 + x i y 2 + x i y 3 ) = ( x 1 + x 2 + x 3 ) ( y 1 + y 2 + y 3 ) .
Now, notice that the sum x 1 + x 2 + x 3 + y 1 + y 2 + y 3 = 2 + 3 + 5 + 7 + 1 1 + 1 3 = 4 1 . Let x 1 + x 2 + x 3 = a and y 1 + y 2 + y 3 = b .
We know that a + b = 4 1 , and want to maximize a b . The maximum occurs at a = 2 0 , b = 2 1 , or vice versa*
To show that this is attainable, let ( x 1 , x 2 , x 3 , y 1 , y 2 , y 3 ) = ( 2 , 7 , 1 1 , 3 , 5 , 1 3 ) . It follows that a = 2 + 7 + 1 1 = 2 0 and b = 3 + 5 + 1 3 = 2 1 , so a b = 4 2 0
*The maximum actually occurs at ( a , b ) = ( 2 4 1 , 2 4 1 ) , but a , b must be integers. (Do you see why?)
Problem Loading...
Note Loading...
Set Loading...
Let i = 1 ∑ 3 x i = X and j = 1 ∑ 3 y j = Y
X + Y = 2 + 3 + 5 + 7 + 1 1 + 1 3 = 4 1
i = 1 ∑ 3 j = 1 ∑ 3 x i y j = i = 1 ∑ 3 x i × j = 1 ∑ 3 y j = X × Y
But 4 X Y = ( X + Y ) 2 − ( X − Y ) 2 ⟹ X Y is maximized when ( X − Y ) 2 is minimum. ⟹ ( X − Y ) 2 = 1 ... (0 is Not possible as X, Y are integers adding up to 41)
This is achievable at X = 2 0 , Y = 2 1 or X = 2 1 , Y = 2 0 (e.g. x i = 2 , 7 , 1 1 , y j = 3 , 5 , 1 3 )
So ans. 2 0 × 2 1 = 4 2 0