Skip to content
Vamshi Jandhyala

Books · Number Puzzles

Chapter 31

The House in the Middle

On a long street the houses are numbered 1,2,3,1, 2, 3, \dots 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 100100 and 999999. What was it, and how many houses were on the street?

Solution

Let his house be number nn and the last house on the street be NN. The condition is 1+2++(n1)=(n+1)+(n+2)++N.1 + 2 + \dots + (n-1) = (n+1) + (n+2) + \dots + N. Add 1+2++n1 + 2 + \dots + n to both sides and the right becomes the whole sum 1++N1 + \dots + N, while the left becomes twice 1++(n1)1 + \dots + (n-1) plus nn. Tidying up, the condition is exactly n2=N(N+1)2,n^2 = \frac{N(N+1)}{2}, 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 (n,N)(n, N) run (1,1), (6,8), (35,49), (204,288), (1189,1681), (1,1), \ (6,8), \ (35,49), \ (204,288), \ (1189,1681), \ \dots The only even nn between 100100 and 999999 is 204204, paired with N=288N = 288. So he lived at house 204204 on a street of 288288 houses. As a check, 1++203=207061 + \dots + 203 = 20706, and 205++288=4161620910=20706205 + \dots + 288 = 41616 - 20910 = 20706 as well.