Option (B) is correct.
Explanation:
The quantity is the mean deviation about a, M.D.(a). It is least when a is the median. For an even number of values, every point between the two middle values does equally well.
Why. Move the tank a small step to the right. It moves closer to every house on its right and farther from every house on its left. If more houses lie on the right, the total distance falls; if more lie on the left, it rises. With 4 houses on each side the total does not change.
The sorted positions are 3,4,6,8,10,13,20,32. The 4th and 5th values are 8 and 10. For every a in [8,10] there are four houses on each side, and
∑∣xi−a∣=(10+13+20+32)−(3+4+6+8)=75−21=54
So the least mean walking distance is 854=427 hundred metres.
Check a few positions.
| a | 6 | 8 | 9 | 10 | 11 | 12 |
|---|
| ∑∣xi−a∣ | 58 | 54 | 54 | 54 | 56 | 58 |
Outside [8,10] the total is larger, so the answer is every a in [8,10], with least value 427.
Why the other options are wrong
- (A) a=12 is the mean (896=12). There ∑∣xi−12∣=9+8+6+4+2+1+8+20=58, giving 429, which is larger than 427. The mean does not minimise the mean deviation.
- (C) a=9 (the usual median) does give 427, but so do 8, 10 and every point between them, so "only a=9" is false.
- (D) The interval cannot reach 12: at a=11 the total is 56 and at a=12 it is 58, both more than 54.