Date: 12/06/2026 02:46:16
From: SCIENCE
ID: 2400280
Subject: re: New pedantic teaser thread.

The Rev Dodgson said:

The Rev Dodgson said:

furious said:

The Rev Dodgson said:

furious said:

dv said:

dv said:

The Rev Dodgson said:

Not ABC.

This is probably quite well known because some Indian chap came up with a neat solution in the early 20th Century, but I hadn’t heard of it:

A man lives on a street where houses are numbered sequentially from 1 to n. The sum of the house numbers to the left of his house exactly equals the sum of the house numbers to his right. If there are between 50 and 500 houses on the street, what is the man’s house number, and how many houses are there?

Interesting.

attempt one

So if there are H houses, and he lives at N, then (N-1)N/2 = (H+1)H/2 – (N+1)N/2

H2 + H = N2- N + N2 + N

H2 + H = 2N2

So … we are looking for a triangular number that is also a square number. I suppose I could think of a good way to do this but I assume there’s a simpler way.

attempt 2

Off hand, 1 and 36 are obv triangular numbers that are square. The latter corresponds to H = 8, which would mean N = 6. So we are looking for H2+H = 2N2 such that H and N are both integers.
Thinking in terms of triangles, we expect H to be about 4/3 N.

Maybe looking at some of those Ns will help

N N2
1 t1+0
6 t8+0
7 t9+4
8 t10+9
9 t12+3
10 t13+9

yeah I don’t think I’m getting anywhere

Actually I’m going to fold. I looked up a list of square triangles so I know the answer now. I’ll await the better method.

204, 288

Right track, but there are between 50 and 500 houses, so numbers that work below 50 (there are two of them) are not the answer to the question.

I’ll post a link tomorrow.

6,8 and 35,49

Correct :)

In that case, I’ll post the link:

https://www.quora.com/How-did-Ramanujan-use-the-square-root-of-2-to-solve-the-Strand-Puzzle-and-what-is-the-significance-of-this-approach

Also correct :)

ah well we suppose bad engineering habits last forever so we just brute forced it


  var n, l, r, m;
  for (n = 1; n < 500; n++) {
   l = n * (n - 1) / 2;
   r = 0;
   for (m = n; r < l; r += m) {
    m++;
   }
   if (l == r) {
    alert(n.toString(10) + "/" + m.toString(10));
   }
  }


b

Reply Quote View full thread