Date: 12/06/2026 10:31:09
From: SCIENCE
ID: 2400320
Subject: re: New pedantic teaser thread.

The Rev Dodgson said:

SCIENCE said:

The Rev Dodgson said:

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.

sorry we blame late night coding for the superfluous b

Reply Quote View full thread