Problem 1192: (2010 AMC 12a, 22)
What is the minimum value of $\left|x-1\right| + \left|2x-1\right| + \left|3x-1\right| + \cdots + \left|119x - 1 \right|$?
$\textbf{(A)}\ 49$ $\textbf{(B)}\ 50$ $\textbf{(C)}\ 51$ $\textbf{(D)}\ 52$ $\textbf{(E)}\ 53$
- $f(x)=\sum_{k=1}^{119}k\left|x-\frac1k\right|$ is piecewise linear. Between the points $\frac1k$, its slope is (total weight $k$ of the points left of $x$) minus (total weight of the points right of $x$). So $f$ decreases while more than half of the weight lies to the right of $x$ and increases afterwards. The total weight is $1+2+\cdots+119=7140$, half is $3570$.
- The points left of $x$ are the $\frac1k$ with large $k$, and $119+118+\cdots+85=3570$. So on $[\frac1{85},\frac1{84}]$ the slope is $0$, and this is where $f$ is smallest; in particular at $x=\frac1{85}$.
- $f\left(\frac1{85}\right)=\sum_{k=1}^{84}\left(1-\frac k{85}\right)+\sum_{k=85}^{119}\left(\frac k{85}-1\right)=84-\frac{3570}{85}+\frac{3570}{85}-35=49$.
- The answer is (A).
What is the minimum value of $|x-1|+|2x-1|+|3x-1|+\cdots+|20x-1|$?