To find the minimum value of the function (f(x) = |x - 1| + |x - 2| + \dots + |x - 2018|), we use the property of sums of absolute values: the minimum occurs at the median of the terms inside the absolute values.
Key Observations:
- The terms inside the absolute values are (1, 2, \dots, 2018) (sorted).
- There are 2018 terms (even), so the median lies between the 1009th and 1010th terms ((1009) and (1010)). Any (x) between these values gives the same minimum.
Calculation:
Let (x = 1009) (or (1010)) to compute the sum:
Split the sum into two parts:
- Left part: (k = 1) to (1009): (\sum{k=1}^{1009} |1009 - k| = \sum{m=0}^{1008} m = \frac{1008 \times 1009}{2}).
- Right part: (k = 1010) to (2018): (\sum{k=1010}^{2018} |1009 - k| = \sum{m=1}^{1009} m = \frac{1009 \times 1010}{2}).
Adding these:
[
\text{Total sum} = \frac{1008 \times 1009}{2} + \frac{1009 \times 1010}{2} = \frac{1009}{2}(1008 + 1010) = 1009 \times 1009 = 1009^2.
]
Result:
(1009^2 = 1018081).
Answer: (\boxed{1018081})


(免责声明:本文为本网站出于传播商业信息之目的进行转载发布,不代表本网站的观点及立场。本文所涉文、图、音视频等资料的一切权利和法律责任归材料提供方所有和承担。本网站对此资讯文字、图片等所有信息的真实性不作任何保证或承诺,亦不构成任何购买、投资等建议,据此操作者风险自担。) 本文为转载内容,授权事宜请联系原著作权人,如有侵权,请联系本网进行删除。