From the 2007 Australian Maths Competition:

*There are 42 points , placed in order on a straight line so that each distance from to is for . What is the sum of the distances between every pair of these points?*

Upon first glance, this problem is begging for a clever shortcut, and the fun will no doubt come from finding it.

We are asked to sum up all possible distances between pairs of points, but instead of considering pairs one by one (which will take too long), we can consider just the ‘chunks’ , since every line segment joining two points is just a combination of such chunks.

So in adding up all possible distances, how many times must we count the section ? It will contribute to every line segment whose left endpoint is to the left of (or equal to) , and whose right endpoint is to the right of (or equal to) . There are choices for the left endpoint and choices for the right endpoint, thus the section must be counted times in total. Recalling that this section has length , it follows that the contribution made to the total distance by this particular section is

.

This is much friendlier than the problem originally appeared; now we just have to sum from to , to obtain a final answer of

.

A fantastic problem, designed in such a manner that with the right shift of focus, most of the arduous calculation melts away.

### Like this:

Like Loading...

*Related*