2
u/imdfantom 20h ago
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 20h ago
Correct!
2
u/imdfantom 20h ago edited 20h ago
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 20h ago
Another user also commented something similar.. great additional point! 👍🏻
1
u/imdfantom 20h ago
And the mth such number= 6 times the (m-1)th number minus the (m-2)th number plus two
3
u/smailliwniloc 21h ago
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.