Date: 12/06/2026 07:56:56
From: The Rev Dodgson
ID: 2400291
Subject: re: New pedantic teaser thread.

SCIENCE said:

The Rev Dodgson said:

The Rev Dodgson said:

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

Not sure what “b” means.

I cheated by reading the top part of the link and noted that the house number that will be closest to satisfying the requirement is int(n/sqrt(2)).

I then brute forced an Excelent solution.

Reply Quote View full thread