1. Let n be a positive integer, then the minimum value of ∣n−1∣+∣n−2∣+⋯⋯+∣n−100∣ is ). A. 2500 B. 4950 C. 5050 D. 5150
Official solution
1. A
When n⩾100, the sum mentioned is 100n−5050. It reaches its minimum value of 4950 when n=100. When 1⩽n⩽100, the sum is (n−1)+⋯+(n−n)+(n+1−n)+⋯+(100n)=n2−101n+5050=(n−2101)2−(2101)2+5050. Therefore, the minimum value of 2500 is reached when n=50 or 51.
Source: NuminaMath-1.5,
licensed Apache-2.0.
Statement and solution reproduced as published; topic, difficulty and ordering added
by this site.