Take a test Sign in 中文
← Exercise 1,192 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
Contents · by chapter
Basic Algebra (10)
Statistics (13)
Equations (42)
Functions (30)
Polynomials (34)
Sequences (34)
Logarithm (30)
Extrema (18)
Complex Numbers (34)
Quadratic Curve(Conic section) (22)
Logic (14)

Exercises and their solutions

Exercise 1,192
What is the minimum value of $|x-1|+|2x-1|+|3x-1|+\cdots+|20x-1|$?
← Back to Problem 1,192
Solution
  1. $f(x)=\sum_{k=1}^{20}k\left|x-\frac1k\right|$ is piecewise linear, with slope (weight of the points $\frac1k$ left of $x$) minus (weight of those to the right), where $\frac1k$ has weight $k$. So $f$ is smallest where the weights strictly to the left and strictly to the right of $x$ are each at most half of the total weight $210$, that is, at most $105$.
  2. Since $15+16+\cdots+20=105$ and $1+2+\cdots+14=105$, the slope is $0$ on $\left[\frac1{15},\frac1{14}\right]$, so $f$ is constant and minimal there; in particular the minimum is attained at $x=\frac1{15}$.
  3. $f\left(\frac1{15}\right)=\sum_{k=1}^{15}\left(1-\frac k{15}\right)+\sum_{k=16}^{20}\left(\frac k{15}-1\right)=(15-8)+(6-5)=\boxed{8}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year