Let A be a set of distinct positive integers. If the arithmetic mean (average) of the elements of A is 21, what is the maximum possible value of an element in A?
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.
Most complete solution yet. Well done!
Log in to reply
Thank you!
I second this. You really got to the bottom of this problem. Great job, Marek! Other solutions are nice and correct, but yours is conceptually superior.
Assume there are n other elements than x . We want to minimize n to maximize x , so this minimum would be the integers 1 , 2 , … , n , whose sum is 2 n ( n + 1 ) . Then we have
1 + n x + 2 n ( n + 1 ) = 2 1 ⟹ x = 2 4 2 + 4 1 x − x 2 ≤ 2 3 1
Well Done Cody!!!
Hey Cody, I think that in the last equation x must be in the terms of n and not in terms of x .
Mine is the same so I won't write it up.But I did slightly different and got that the maximum value of an element will be the maximum value of 2 n ( 4 3 − n ) which is 231.
Straight-forward solution to a straight-forward problem. Upvoted to tie with Marek B. Was this Level 5?
Let the elements of the set be - a 1 , a 2 , … a n and x where x is the maximum possible value of the element of set A
Then n + 1 a 1 + a 2 + … + a n + x = 2 1
To maximize x , we need to minimize a 1 + a 2 + … + a n
Notice, that if the elements of the set are lower than the mean, then the mean also gets down. Thus this is the only way to minimize a 1 + a 2 + … + a n
Hence, a 1 = 1 , a 2 = 2 , … a n = 2 0 . So, n = 2 0
Therefore, a 1 + a 2 + … + a 2 0 = 1 + 2 + 3 + 4 + … + 2 0 = 2 1 0
(Also taking 21 also to be an element of the set, would make any change)
Thus, 2 0 + 1 2 1 0 + x = 2 1 ⇒ x = 2 3 1
Suppose A contains n distinct positive integers. In order to contain the maximum value by which the elements of A have an arithmetic mean of 21, A must contain the elements 1, 2, 3, ..., n – 1 alongside some n th element which is the maximum. Consider the cases in which n is small.
If | A | = 2, then A = {1, 41} since 2 1 + 4 1 = 2 4 2 = 2 1 .
If | A | = 3, then A = {1, 2, 60} since 2 1 + 2 + 6 0 = 3 6 3 = 2 1 .
If | A | = 4, then A = {1, 2, 3, 78} since 4 1 + 2 + 3 + 7 8 = 4 8 4 = 2 1 .
If | A | = 5, then A = {1, 2, 3, 4, 95} since 5 1 + 2 + 3 + 4 + 9 5 = 5 1 0 5 = 2 1 .
The n th term takes the form 2 1 n − 2 n ( n − 1 ) such that the average of the elements of A is given by the expression n 1 + 2 + 3 + . . . + ( n − 1 ) + ( 2 1 n − 2 n ( n − 1 ) ) . Let f ( n ) = 2 1 n − 2 n ( n − 1 ) = 2 1 n − 2 n 2 − n = 2 1 n − 2 n 2 + 2 n = − 2 1 n 2 + 2 4 3 n . The quadratic function f ( n ) has a maximum at n = 2 ( − 2 1 ) − 2 4 3 = 2 4 3 = 2 1 . 5 . Note that f (21.5) = 231.125. Since n is an integer, take n = 21 or n = 22, noting that f (21) = f (22) = 231. Thus, 231 is the maximum possible value for an element of A .
First we have to find the highest number under optimal circumstances, after that we have to proof that it really is a maximum.
the average is 21.
So every element that is under 21 gets the average down.
So 1,2,...,20 are all in A.
Every integer that is higher than 21 gets the average up. So they shouldnt be in A, except for the maximum possible value, which is 21*21-1-2-3-4-5-6-7-8-9-10-11-12-13-14-15-16-17-18-19-20
Adding any other element (except for 21 itself, which is trivial) to A gets the average up. This means that to maintain the average of 21, there has to be another element that is lower than 21 added to A. But since 1,2,..,20 are all in A, this is not possible.
So there cannot be an element added to A that is higher than 231.
If you remove 231 from A, the average goes down, but if you add a number that is higher than 231 to A, the averae will be higher than 21.
Let n be the total number of elements in the set A. As the AM is 21, the sum of all the elements can be 2 1 × n Let n=1 then maximum value is 21 Let n=2 then maximum value is 2 × 2 1 − 1 since the set A has distinct positive integers. Let n=3 then maximum value is 3 × 2 1 − ( 1 + 2 ) since the set A has distinct positive integers. Now let's formulate a function in order to find out the maximum possible value for the set A having number of elements n m a x ( x ) = 2 1 × n − 2 ( n − 1 ) × n Now let's find when the value of this function is zero ⇒ 2 1 × n − 2 ( n − 1 ) × n = 0 ⇒ 4 3 × n − n 2 = 0 ⇒ n ( n − 4 3 ) = 0 ⇒ n = 0 ∣ n = 4 3 ⇒ n = 4 3 since, A is not a null set. Now, we know that the nmaximum value increases from n = 1 to n = x and decreases from n = x to n=43 The value of x can be found out as it lies midway between 1 an 43. Thus, x = 2 4 3 − 1 ⇒ x = 2 4 2 ⇒ x = 2 1 The maximum possible value can be found at n=x i.e n=21. Applying the function,we get 2 1 × 2 1 − 2 2 0 × 2 1 = 4 4 1 − 2 1 0 = 2 3 1
Assume that there are n numbers in A. Then the total value is 21n. To find the greatest possible value of an element, assume that the other (n-1) numbers are 1, 2, 3..., (n-2), (n-1), the total of which is n(n-1)/2.
Hence the maximum value is 21n-n(n-1)/2 = \frac{43}{2} n - \frac{n^2}{2}. Differentiating this with respect to n, we have \frac{43}{2} - n. Equating this with 0 would give n= \frac{43}{2}, whose value is halfway between 21 and 22. Hence the maximum possible value is possible whether there are 21 or 22 values in A. Now, the maximum value is \frac{43}{2} x 21 - \frac{21^2}{2} = 231.
Let A consist of all distinct positive integers smaller than 21. { 1 , 2 , 3 . . . 2 0 } ∈ A Then the sum of these elements is ∑ i = 1 2 0 = 2 2 0 ∗ 2 1 = 2 1 0 with 20 elements. With the largest single integer the total number of elements will be 21, where the sum is supposed to be (\21*21 = 441). Therefore, the largest a number can be is 4 4 1 − 2 1 0 = 2 3 1
If u take 2 numbers, namely 1 and 41, u will get 21 as average If u take 3 numbers, namely 1,2 and (41+40), u will get 21 as average. This means that from 1 to 20, u will need a number (41+40+39...+23+22) to get 21 as average.
The sum of the elements of A divided by the number of elements equals 21. Because all elements must be distinct and positive, the maximum possible value would be in a set with all of the positive integers less than the mean. The sum of the numbers 1 through 20 equals 210, so (210 + maxValue) / 21 = 21. Solving the equation for maxValue yields 231.
Let x n be the maximum value, then x ˉ n x 1 + x 2 + ⋯ + x n x n = 2 1 = 2 1 = 2 1 n − ( x 1 + x 2 + ⋯ + x n − 1 ) . To make x n is a maximum integer, x 1 , x 2 , x 3 , ⋯ must be an arithmetic series 0 , 1 , 2 , 3 , ⋯ . We have x n = 2 1 n − ( 0 + 1 + 2 + ⋯ + ( n − 1 ) ) = 2 1 n − 2 n ( 0 + ( n − 1 ) ) = − 2 1 n 2 + 2 1 n + 2 1 . To obtain the maximum value of a function, f ( n ) , use the standard method: f ′ ( n ) = 0 and f ′ ′ ( n ) < 0 . d n d x n − n + 2 1 n = 0 = 0 = 2 1 , and d n 2 d 2 x n = − 1 < 0 . Substitute n = 2 1 to x n , we obtain x n = − 2 1 ( 2 1 ) 2 + 2 1 ( 2 1 ) + 2 1 = 2 3 1 . # Q . E . D . #
21 n = ∑ i = 1 n x i
Let x n be y, to let y become maximum, sum of the numbers before it must be minimum. But given each number is different positive integer, smallest ∑ i = 1 n − 1 x i is arithmetic series starting from 1.
Now we have 21n = 2 ( n − 1 ) ( n ) + y
y = (43n- n 2 ) 2 1
Using differentiation to get maximum y.
43=2n
After trying few times, y really is maximum when n = 21 and 22
y = (43(21)- 2 1 2 ) 2 1 = 2 3 1
Problem Loading...
Note Loading...
Set Loading...
Let M denote the arithmetic mean. By its definition M = a ∈ A ∑ a / ∣ A ∣ . We can rewrite this summation as a ∈ A ∑ ( a − M ) = 0 . Thu sum splits into two parts -- elements greater than M contribute positively while those less than M contribute negatively. Because we want A to include an element of maximal possible value it follows that the first sum is over just one element E . Therefore we get E − M = a ∈ A , a < M ∑ ( M − a ) . Since every term of this sum is positive, it's maximized precisely when we include all of the elements from 1 up to 2 0 . Therefore E = 1 + ⋯ + 2 1 so the answer is 2 3 1 .