A set S contains some number of distinct integers, the smallest of which is 0 and the largest is 2015. What is the smallest possible average of the elements of S to the nearest integer?
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.
When you write { a k } 0 2 0 1 5 , usually that means { a 0 , a 1 , a 2 , … , a 2 0 1 5 } . It's unusual to see it to mean the minimum is 0 and the maximum is 2015. Maybe phrase it better?
Log in to reply
You are right. I have changed the phrase.
Log in to reply
Well, now you imply that S has 2016 elements ( a 0 , a 1 , a 2 , … , a 2 0 1 5 ), while it's certainly not the case.
Log in to reply
@Ivan Koswara – Sorry, I didn't save it properly.
Log in to reply
@Chew-Seong Cheong – No, when you write " a 0 = 0 is the minimum, a 2 0 1 5 = 2 0 1 5 is the maximum", then it implies your elements are a 0 , a 1 , a 2 , … , a 2 0 1 5 . You should have written " a 1 = 0 is the minimum, a N = 2 0 1 5 is the maximum".
Log in to reply
@Ivan Koswara – Sorry, I swear I have changed it and it doesn't appear.
Why was the question changed to give the answer 'to the nearest integer'? It's not necessary, and could make people think that it's a calc question...
Log in to reply
When I did the question, it was already "to the nearest integer". Was the original not so?
Regardless, one reason why it's "to the nearest integer" is because the answer format is an integer; not saying so can make people to think "okay, the answer is an integer, so I can make this implication that would otherwise be illegal if I didn't know that".
Log in to reply
The original was not so. Some people get put off by questions that require computers to solve, plus I was also sort of trying to make a subtle point that it can be done by hand. Besides, if I were trying to give information that the answer had to be an integer, I would mention that in the problem rather than letting people deduce information from the input format.
The trick is to add the smallest possible integers (i.e. 1, 2, 3, etc.) as long as the number added is less than the current average.
If we add the integers up to n , we end up with n + 2 elements in the set, with a total of 1 + 2 + ⋯ + n + 2 0 1 5 = 2 1 n ( n + 1 ) + 2 0 1 5 . One way to approach this problem is by solving the quadratic equation average = n + 2 2 1 n ( n + 1 ) + 2 0 1 5 = n , but I will pursue a method of successive approximation.
If we take n = 0 (so that the set only contains two integers) the average is obviously equal to 2 0 1 5 / 2 = 1 0 0 7 2 1 . Adding all integers up to n = 1 0 0 7 gives the next approximation: an average of 5 0 9 5 4 3 / 1 0 1 0 = 5 0 4 . 9 9 8 . Therefore we try the next approximation with n = 5 0 5 , and so on. The table shows the successive steps:
n 0 1 0 0 7 5 0 4 2 5 5 1 3 4 8 1 6 4 6 2 sum 2 0 1 7 5 0 9 5 4 3 1 2 9 2 7 5 3 4 6 5 5 1 1 0 6 0 5 3 3 6 4 0 9 5 3 0 9 5 average 1 0 0 8 . 5 0 5 0 4 . 9 9 2 5 5 . 4 8 1 3 4 . 8 4 8 1 . 3 2 6 4 . 2 9 6 2 . 0 5 6 2 . 0 0
Thus the average is exactly 6 2 , for the set { 0 , 1 , 2 , … , 6 1 , 6 2 , 2 0 1 5 } . Of course, removing 62 from the set would not affect the average.
Problem Loading...
Note Loading...
Set Loading...
Relevant wiki: Extremal Principle - Problem Solving
Let S = { a k } 0 N , where a k ∈ Z , a 0 = 0 is the minimum and a N = 2 0 1 5 is the maximum. Then the average of elements of S is given by a k = N ∑ k = 1 N a k . Since two elements 0 and 2015 are already fixed, we can find the minimum a k by including some n smallest elements from 1, 2, 3, ... to then take the average by dividing the sum by n + 2 . Then a k is given by:
a k = n + 2 ∑ k = 1 n k + 2 0 1 5 = n + 2 2 1 n ( n + 1 ) + 2 0 1 5 = 2 1 ( n + 2 n ( n + 1 ) + 4 0 3 0 ) = 2 1 ( n + 2 n ( n + 2 ) − n − 2 + 4 0 3 2 ) = 2 1 ( n − 1 + n + 2 4 0 3 2 ) = 2 1 ( n + 2 + n + 2 4 0 3 2 − 3 ) ≥ 6 1 . 9 9 8 0 3 1 4 7 By AM-GM inequality: n + 2 + n + 2 4 0 3 2 ≥ 2 4 0 3 2 Equality occurs when: n ≈ 6 1 . 5
Upon checking, we find that a k m i n = 6 2 , when n = 6 1 , 6 2 .