Average of a sequence

Number Theory Level pending

If the number x x in the sequence { 1 , 2 , 3 , , x , , n 1 , n } \{1, 2, 3,\cdots, x,\cdots, n-1, n\} is doubled, the average of the sequence will be 51.

Find maximum ( n x ) (n-x ) . If it is impossible to determine, enter 0.


The answer is 50.

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.

1 solution

Leonel Castillo
Feb 3, 2018

The average is calculated by 1 + 2 + 3 + . . . + 2 x + . . . + n n = 1 + 2 + . . . + n + x n = n ( n + 1 ) 2 + x n = n + 1 2 + x n \frac{1 + 2 + 3 + ... + 2x + ... + n}{n} = \frac{1 + 2 + ... + n + x}{n} = \frac{ \frac{n(n+1)}{2} + x}{n} = \frac{n+1}{2} + \frac{x}{n} . And the problem tells us that n + 1 2 + x n = 51 \frac{n+1}{2} + \frac{x}{n} = 51 . With a little algebra we can re-arrange this into x = 101 n n 2 2 x = \frac{101n - n^2}{2} . Unfortunately we really have no idea what n n has to be, but there are two properties we have yet to apply. First, x x has to be a positive integer so we have the inequality 101 n n 2 > 0 101 n > n 2 101 > n 101n - n^2 > 0 \implies 101n > n^2 \implies 101 > n . The other property is that x n x \leq n so we have 101 n n 2 2 n 101 n n 2 2 n 99 n n 2 99 n \frac{101n - n^2}{2} \leq n \implies 101n - n^2 \leq 2n \implies 99n \leq n^2 \implies 99 \leq n . So what we have found is that 101 > n 99 n = 100 , 99 101 > n \geq99 \implies n=100,99 . And using the formula we have, x = 50 x = 50 when n = 100 n=100 and x = 99 x=99 when n = 99 n=99 . Thus the maximum value is n x = 50 n - x = 50 .

There are two solutions for this problem n =100 , x = 50 and n = 99, x = 99

Ossama Ismail - 3 years, 4 months ago

Log in to reply

Ah ok, I don't know if I misread or if you edited but I thought the problem said "find n-x" which hinted, at least for me, that the solution was unique. Let me fix this.

Leonel Castillo - 3 years, 4 months ago

Log in to reply

Yes, I edited the problem phrasing. This was a done a few seconds after your submitted your answer.

Ossama Ismail - 3 years, 4 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...