What is the minimum value of the following? $$A = |x| + |2x+1|+|3x+2|+\cdots+|99x+98|$$
What I've tried so far:
- Since $|x| = |-x| $ it is clear that $|3x + 2|$ = $|-3x - 2|$, $|5x + 4| = |-5x-4|$ and so on.
- Therefore $A \geq -x + 2x+1-3x-2+4x+3-5x-4+\cdots-99x-98 = -50x - 49$ and I'm stuck here.
I'm quite sure it's not the right way to go, but that's what I've tried so far. Thanks in advance.
The general term is of the form $f_n = |(n+1)x + n|$. For $x > -\frac{n}{n+1} = c_n$ we have $f_n = (n+1)x + n$, for $x \le -\frac{n}{n+1}$ we have $f_n = -(n+1)x - n$. The terms $c_0 = 0 > c_n > c_{98} = -\frac{98}{99}$.
So clearly $A$ will get large if $x>0$ or $x <-\frac{98}{99}$.
So choose some $0 > x > -\frac{98}{99}$. Then $c_{n-1} > x > c_n$ and $$A = \sum_{k=n}^{98} [(k+1)x + k] - \sum_{k=0}^{n-1} [(k+1)x + k]\\ = (98 - 2n)x + (\frac12 98 \cdot 99 - n (n+1))(x+1) \\ = -(98 - 2n)\frac{n}{n+1} + (49 \cdot 99 - n (n+1))(-\frac{n}{n+1} +1) \\ = \frac{1}{n+1} \left( -n (98 - 2n) + (49 \cdot 99 - n (n+1))\right) \\ = \frac{n^2 - 99 n + 4851}{n+1}$$ and at $n =\sqrt{4951} - 1 \simeq 69.3$ this attains its local minimum $2 \sqrt{4951} - 101 \simeq 40 $.
So we should look at the neighbouring values to find the exact minimum of $A$ which will occur at some boundary.
For $n = 69$ and with the sum above we have that $A=\frac{937}{23}\simeq 40.739$.
For $n = 70$ we have that $A=\frac{285}{7} \simeq 40.714$ which is the lowest value, taken at $x = -\frac{69}{70} \simeq -0.9857$.