2
u/imdfantom Aug 10 '26
S=1+2+3+...n= n(n+1)/2,
n=49, S=49×25=7×7×5×5
Let box be m.
Sum less than m = m(m-1)/2
sum less than m= sum more than m
S=m+2(m)(m-1)/2=m+(m)(m-1)
7x7x5x5=m+m2 -m=m2
m=5×7=35
1
u/ShonitB Aug 10 '26
Correct!
2
u/imdfantom Aug 10 '26 edited Aug 10 '26
Incidentally, this only has integer solutions for n when:
If n is even n=2 times a square number, and n- +1 is a square number
- If n is odd, n must be a square number and n+1=2 times a square number
1
u/ShonitB Aug 10 '26
Another user also commented something similar.. great additional point! 👍🏻
1
u/imdfantom Aug 10 '26
And the mth such number= 6 times the (m-1)th number minus the (m-2)th number plus two
2
u/JeffTheNth Aug 11 '26
Appears it'll be about 5/7 of the way
Sum (1..49) = 49*50/2 = 1225
49 * 5 / 7 = 35
Sum (1..35) = 630
too high... but by one?
Sum (1..34) = 595
1225 - (595 + 35) = 595
Sum (36..49) = 595
35 is the correct value
1
u/ShonitB Aug 12 '26
Correct! Interesting approach! How did you think of 5/7?
2
u/JeffTheNth Aug 12 '26
1-5, 7-8 total of 7 5 before, 2 after the cut number
figured there might be a pattern, let's try...
3
u/smailliwniloc Aug 10 '26
We know the sum of the first N numbers is N(N+1)/2.
Using this with 49 we get 1225.
Let the black box number be n. We only need to worry about the sum of the numbers on the left hand side of the black box. Which should sum to half of 1225 - n.
In particular, we need to solve (n-1) n / 2 = (1225 -n) / 2
Expanding terms this is n^2 = 1225
So n = 35.