If a k is 1 or − 1 for all integers k where 1 ≤ k ≤ 2 0 1 8 , calculate the smallest positive value of 1 ≤ i < j ≤ 2 0 1 8 ∑ a i a 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.
Notice that:
2 1 ≤ i < j ≤ 2 0 1 8 ∑ a i a j = ( a 1 + a 2 + ⋯ + a 2 0 1 8 ) 2 − ( a 1 2 + a 2 2 + ⋯ + a 2 0 1 8 2 ) = ( a 1 + a 2 + ⋯ + a 2 0 1 8 ) 2 − 2 0 1 8 .
We know that a k = ± 1 and a 1 + a 2 + ⋯ + a 2 0 1 8 is an integer between − 2 0 1 8 and 2 0 1 8 incliusive. Also, there are even number of terms where each term is odd, thus their sum is even.
The minimum positive integer value of ( a 1 + a 2 + ⋯ + a 2 0 1 8 ) 2 − 2 0 1 8 = 4 6 2 − 2 0 1 8 = 9 8 . This is true when a 1 + a 2 + ⋯ + a 2 0 1 8 = ± 4 6 which can be only accomplished when a 1 = a 2 = ⋯ = a 4 6 = 1 .
How about the rest of the terms ( a 4 7 , a 4 8 , a 4 9 , … , a 2 0 1 8 )? They can contain values between + 1 's and − 1 's.
Therefore, the least positive value is 2 9 8 = 4 9
Problem Loading...
Note Loading...
Set Loading...
First, realize that:
( i = 1 ∑ 2 0 1 8 a i ) 2 = i = 1 ∑ 2 0 1 8 a i 2 + 2 ( 1 ≤ i < j ≤ 2 0 1 8 ∑ a i a j )
Since a i = ± 1 , a i 2 = 1 , so i = 1 ∑ 2 0 1 8 a i 2 = 2 0 1 8 .
Let r and s be the number of values of k where a k = 1 and a k = − 1 , respectively. i = 1 ∑ 2 0 1 8 a i = r ( 1 ) + s ( − 1 ) = r − s . Since r + s = 2 0 1 8 , r and s have the same parity, so r − s should be an even integer 2 n . Plugging this all into the first equation, we get:
( 2 n ) 2 = 2 0 1 8 + 2 ( 1 ≤ i < j ≤ 2 0 1 8 ∑ a i a j ) ⟹ 1 ≤ i < j ≤ 2 0 1 8 ∑ a i a j = 2 ( 2 n ) 2 − 2 0 1 8
Since this value must be positive, and the goal is to minimize the value, ( 2 n ) 2 should be the smallest even perfect square greater than 2 0 1 8 , which is 4 6 2 = 2 1 1 6 . The answer is 2 2 1 1 6 − 2 0 1 8 = 4 9 .