Find the smallest positive integer $n$ for which $|x − 1| + |x − 2| + |x − 3| + · · · + |x − n| \geq 2022$ for all real numbers $x$.
I don't think I can combine any of these terms, right? So I started by changing the equation into the sum of an arithmetic series, but I don't think that does anything.
$$\sum_{i=1}^n |x-i| = \frac{n}{2}(|x-1|+|x-n|) \ge 2022$$
I'm not sure how to go from here, any suggestions? Thanks!