furious said:
dv said:
dv said: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/2H2 + 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+9yeah 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
Correct :)
In that case, I’ll post the link: