Difference between revisions of "2010 AMC 12A Problems/Problem 22"
(→Solution) |
m (Semi-automated contest formatting - script by azjps) |
||
Line 1: | Line 1: | ||
− | == Problem | + | == Problem == |
What is the minimum value of <math>\left|x-1\right| + \left|2x-1\right| + \left|3x-1\right| + \cdots + \left|119x - 1 \right|</math>? | What is the minimum value of <math>\left|x-1\right| + \left|2x-1\right| + \left|3x-1\right| + \cdots + \left|119x - 1 \right|</math>? | ||
Line 13: | Line 13: | ||
The sum of the slope at <math>x = \frac{1}{m}</math> is | The sum of the slope at <math>x = \frac{1}{m}</math> is | ||
− | < | + | <cmath>\begin{align*}\sum_{i&=m+1}^{119}i - \sum_{i=1}^{m}i\ |
− | + | =\sum_{i&=1}^{119}i - 2\sum_{i=1}^{m}i\ | |
− | + | &=-m^2-m+7140\end{align*}</cmath> | |
− | |||
− | |||
− | |||
Now we want to minimize <math>-m^2-m+7140</math>. The zeros occur at <math>-85</math> and <math>84</math>, which means the slope is <math>0</math> where <math>m = 84, 85</math>. | Now we want to minimize <math>-m^2-m+7140</math>. The zeros occur at <math>-85</math> and <math>84</math>, which means the slope is <math>0</math> where <math>m = 84, 85</math>. | ||
Line 72: | Line 69: | ||
</cmath> | </cmath> | ||
Hence the total sum of distances is <math>\frac{83}2 + \frac{15}2 = 49</math>. | Hence the total sum of distances is <math>\frac{83}2 + \frac{15}2 = 49</math>. | ||
+ | |||
+ | == See also == | ||
+ | {{AMC12 box|year=2010|num-b=21|num-a=23|ab=A}} | ||
+ | |||
+ | [[Category:Intermediate Geometry Problems]] |
Revision as of 22:34, 25 February 2010
Contents
[hide]Problem
What is the minimum value of ?
Solution
Solution 1
If we graph each term separately, we will notice that all of the zeros occur at , where
is any integer from
to
, inclusive.
The minimum value occurs where the sum of the slopes is at a minimum, since it is easy to see that the value will be increasing on either side. That means the minimum must happen at some .
The sum of the slope at is
\begin{align*}\sum_{i&=m+1}^{119}i - \sum_{i=1}^{m}i\\ =\sum_{i&=1}^{119}i - 2\sum_{i=1}^{m}i\\ &=-m^2-m+7140\end{align*} (Error compiling LaTeX. Unknown error_msg)
Now we want to minimize . The zeros occur at
and
, which means the slope is
where
.
We can now verify that both and
yield
.
Solution 2
Rewrite the given expression as follows:
Imagine the real line. For each
imagine that there are
boys standing at the coordinate
. We now need to place a girl on the real line in such a way that the sum of her distances from all the boys is minimal, and we need to compute this sum.
Note that there are boys in total. Let's label them from 1 (the only boy placed at
) to
(the last boy placed at
.
Clearly, the minimum sum is achieved if the girl's coordinate is the median of the boys' coordinates. To prove this, place the girl at the median coordinate. If you now move her in any direction by any amount , there will be
boys such that she moves
away from this boy. For each of the remaining boys, she moves at most
closer, hence the total sum of distances does not decrease.
Hence the optimal solution is to place the girl at the median coordinate. Or, more precisely, as is even, we can place her anywhere on the segment formed by boy
and boy
: by extending the previous argument, anywhere on this segment the sum of distances is the same.
By trial and error, or by solving the quadratic equation we get that boy number
is the last boy placed at
and the next boy is the one placed at
. Hence the given expression is minimized for any
.
Common part of both solutions
To find the minimum, pick . Note that the terms
to
are negative, and the terms
to
are positive. Hence we get:
and
Hence the total sum of distances is
.
See also
2010 AMC 12A (Problems • Answer Key • Resources) | |
Preceded by Problem 21 |
Followed by Problem 23 |
1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 • 16 • 17 • 18 • 19 • 20 • 21 • 22 • 23 • 24 • 25 | |
All AMC 12 Problems and Solutions |