[Home] [Puzzles & Projects] [Delphi Techniques] [Math topics] [Library] [Utilities]


Problem Description
Runners at a marathon race are assigned consecutive numbers starting at 1.
One of the entrants with a mathematical bent noticed that the sum of the numbers less than his
own was equal to the sum of the numbers greater. If there were more than 10 runners but less than
100, what number was he and how many runners were there in the race? Source: Math and Logic Puzzles for PC Enthusiasts, Dover Books, J. J. Clessa. Background & TechniquesAnother trial and error solution. We'll just try all marathoner's numbers between the lower and upper limits we get from the user. For each, add up the number lower and add up the number bigger and when they're equal, we've got a solution. Running/Exploring the Program
Suggestions for Further Explorations

[Feedback] [Newsletters (subscribe/view)] [About me]Copyright © 20002017, Gary Darby All rights reserved. 