Chapter 31
The House in the Middle
On a long street the houses are numbered in order. A man living there noticed that the sum of all the house numbers below his own was exactly equal to the sum of all the numbers above it. His house number was even and lay between and . What was it, and how many houses were on the street?
Solution
Let his house be number and the last house on the street be . The condition is Add to both sides and the right becomes the whole sum , while the left becomes twice plus . Tidying up, the condition is exactly so his house number squared must be a triangular number. A number that is at once a perfect square and triangular is rare; the pairs run The only even between and is , paired with . So he lived at house on a street of houses. As a check, , and as well.