Maximum Element Value

Let A A be a set of distinct positive integers. If the arithmetic mean (average) of the elements of A A is 21, what is the maximum possible value of an element in A?


The answer is 231.

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.

12 solutions

Marek Bernat
Nov 4, 2013

Let M M denote the arithmetic mean. By its definition M = a A a / A . M = \sum_{a \in A} a / |A| . We can rewrite this summation as a A ( a M ) = 0. \sum_{a \in A} (a - M) = 0. Thu sum splits into two parts -- elements greater than M M contribute positively while those less than M M contribute negatively. Because we want A A to include an element of maximal possible value it follows that the first sum is over just one element E E . Therefore we get E M = a A , a < M ( M a ) . E - M = \sum_{a \in 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 1 up to 20 20 . Therefore E = 1 + + 21 E = 1 + \cdots + 21 so the answer is 231 \bf 231 .

Most complete solution yet. Well done!

Mirza Baig - 7 years, 7 months ago

Log in to reply

Thank you!

Marek Bernat - 7 years, 7 months ago

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.

Alexander Borisov - 7 years, 7 months ago
Cody Johnson
Nov 3, 2013

Assume there are n n other elements than x x . We want to minimize n n to maximize x x , so this minimum would be the integers 1 , 2 , , n 1,2,\dots,n , whose sum is n ( n + 1 ) 2 \frac{n(n+1)}{2} . Then we have

x + n ( n + 1 ) 2 1 + n = 21 x = 42 + 41 x x 2 2 231 \frac{x+\frac{n(n+1)}{2}}{1+n}=21\implies x=\frac{42+41x-x^2}{2}\le\boxed{231}

Well Done Cody!!!

Kishlaya Jaiswal - 7 years, 7 months ago

Hey Cody, I think that in the last equation x x must be in the terms of n n and not in terms of x x .

Kishan k - 7 years, 7 months ago

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 n ( 43 n ) 2 \large\frac{n(43-n)}{2} which is 231.

Kishan k - 7 years, 7 months ago

Straight-forward solution to a straight-forward problem. Upvoted to tie with Marek B. Was this Level 5?

Ahaan Rungta - 7 years, 7 months ago
Kishlaya Jaiswal
Nov 4, 2013

Let the elements of the set be - a 1 , a 2 , a n a_1, a_2, \ldots a_n and x x where x x is the maximum possible value of the element of set A

Then a 1 + a 2 + + a n + x n + 1 = 21 \frac{a_1+a_2+\ldots+a_n+x}{n+1}=21

To maximize x x , we need to minimize a 1 + a 2 + + a n a_1+a_2+\ldots+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 a_1+a_2+\ldots+a_n

Hence, a 1 = 1 , a 2 = 2 , a n = 20 a_1 = 1, a_2 = 2, \ldots a_n=20 . So, n = 20 n=20

Therefore, a 1 + a 2 + + a 20 = 1 + 2 + 3 + 4 + + 20 = 210 a_1+a_2+\ldots+a_{20}=1+2+3+4+\ldots+20=210

(Also taking 21 also to be an element of the set, would make any change)

Thus, 210 + x 20 + 1 = 21 x = 231 \frac{210+x}{20+1}=21 \Rightarrow x = \boxed{231}

Geoffrey Mooney
Nov 4, 2013

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 1 + 41 2 = 42 2 = 21 \frac{1+41}{2} = \frac{42}{2} = 21 .

  • If | A | = 3, then A = {1, 2, 60} since 1 + 2 + 60 2 = 63 3 = 21 \frac{1+2+60}{2} = \frac{63}{3} = 21 .

  • If | A | = 4, then A = {1, 2, 3, 78} since 1 + 2 + 3 + 78 4 = 84 4 = 21 \frac{1+2+3+78}{4} = \frac{84}{4} = 21 .

  • If | A | = 5, then A = {1, 2, 3, 4, 95} since 1 + 2 + 3 + 4 + 95 5 = 105 5 = 21 \frac{1+2+3+4+95}{5} = \frac{105}{5} = 21 .

The n th term takes the form 21 n n ( n 1 ) 2 21n-\frac{n(n-1)}{2} such that the average of the elements of A is given by the expression 1 + 2 + 3 + . . . + ( n 1 ) + ( 21 n n ( n 1 ) 2 ) n \frac{1+2+3+...+(n-1)+(21n-\frac{n(n-1)}{2})}{n} . Let f ( n ) = 21 n n ( n 1 ) 2 = 21 n n 2 n 2 = 21 n n 2 2 + n 2 = 1 2 n 2 + 43 2 n f(n) = 21n-\frac{n(n-1)}{2} = 21n-\frac{n^{2}-n}{2} = 21n-\frac{n^{2}}{2}+\frac{n}{2} = -\frac{1}{2}n^{2}+\frac{43}{2}n . The quadratic function f ( n ) f(n) has a maximum at n = 43 2 2 ( 1 2 ) = 43 2 = 21.5 n= \frac{-\frac{43}{2}}{2(-\frac{1}{2})} = \frac{43}{2} = 21.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 .

Frank Tieskens
Nov 4, 2013

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 21 × n 21 \times n Let n=1 then maximum value is 21 Let n=2 then maximum value is 2 × 21 1 2 \times 21 - 1 since the set A has distinct positive integers. Let n=3 then maximum value is 3 × 21 ( 1 + 2 ) 3 \times 21 - (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 ) = 21 × n ( n 1 ) × n 2 max(x) = 21 \times n - \frac{(n-1) \times n}{2} Now let's find when the value of this function is zero 21 × n ( n 1 ) × n 2 = 0 \Rightarrow 21 \times n - \frac{(n-1) \times n}{2} = 0 43 × n n 2 = 0 \Rightarrow 43 \times n - n^{2} = 0 n ( n 43 ) = 0 \Rightarrow n(n - 43) = 0 n = 0 n = 43 \Rightarrow n = 0 | n=43 n = 43 \Rightarrow n = 43 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 = 43 1 2 x = \frac{43-1}{2} x = 42 2 \Rightarrow x = \frac{42}{2} x = 21 \Rightarrow x = 21 The maximum possible value can be found at n=x i.e n=21. Applying the function,we get 21 × 21 20 × 21 2 21 \times 21 - \frac{20 \times 21}{2} = 441 210 =441-210 = 231 =231

Noel Lo
Nov 7, 2013

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.

Isik Oz
Nov 7, 2013

Let A consist of all distinct positive integers smaller than 21. { 1 , 2 , 3...20 } A \{1,2,3... 20\} \in A Then the sum of these elements is i = 1 20 = 20 21 2 = 210 \sum_{i=1}^{20} = \frac{20*21}{2} = 210 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 441 210 = 231 441 - 210 = 231

Elijah Tan
Nov 6, 2013

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.

Albert Wouters
Nov 3, 2013

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.

Tunk-Fey Ariawan
Jan 26, 2014

Let x n x_n be the maximum value, then x ˉ = 21 x 1 + x 2 + + x n n = 21 x n = 21 n ( x 1 + x 2 + + x n 1 ) . \begin{aligned} \bar{x}&=21\\ \frac{x_1+x_2+\cdots+x_n}{n}&=21\\ x_n&=21n-(x_1+x_2+\cdots+x_{n-1}). \end{aligned} To make x n x_n is a maximum integer, x 1 , x 2 , x 3 , x_1, x_2, x_3, \cdots must be an arithmetic series 0 , 1 , 2 , 3 , 0, 1, 2, 3, \cdots . We have x n = 21 n ( 0 + 1 + 2 + + ( n 1 ) ) = 21 n n 2 ( 0 + ( n 1 ) ) = 1 2 n 2 + 21 n + 1 2 . \begin{aligned} x_n&=21n-(0+1+2+\cdots+(n-1))\\ &=21n-\frac{n}{2}(0+(n-1))\\ &=-\frac{1}{2}n^2+21n+\frac{1}{2}. \end{aligned} To obtain the maximum value of a function, f ( n ) f(n) , use the standard method: f ( n ) = 0 f'(n)=0 and f ( n ) < 0 f''(n)<0 . d x n d n = 0 n + 21 = 0 n = 21 , \begin{aligned} \frac{dx_n}{dn}&=0\\ -n+21&=0\\ n&=21, \end{aligned} and d 2 x n d n 2 = 1 < 0. \frac{d^2x_n}{dn^2}=-1<0. Substitute n = 21 n=21 to x n x_n , we obtain x n = 1 2 ( 21 ) 2 + 21 ( 21 ) + 1 2 = 231 . # Q . E . D . # x_n=-\frac{1}{2}(21)^2+21(21)+\frac{1}{2}=\boxed{231}.\\ \text{\# }\mathbb{Q}.\mathbb{E}.\mathbb{D}.\text{\#}

Rui-Xian Siew
Nov 8, 2013

21 n = i = 1 n \sum_{i=1}^n x i x_{i}

Let x n 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 \sum_{i=1}^n-1 x i x_{i} is arithmetic series starting from 1.

Now we have 21n = ( n 1 ) ( n ) 2 \frac{(n-1)(n)}{2} + y

y = (43n- n 2 n^{2} ) 1 2 \frac{1}{2}

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 21^{2} ) 1 2 \frac{1}{2} = 231 \boxed{231}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...