Lost in Addition

Find the number between 1 and 49 (inclusive) such that the sum to the left of it is equal to the sum to the right of it.


Note: For example, between 1 and 8, 6 would be the answer, as the sum of the numbers to the left of 6, which is 1 + 2 + 3 + 4 + 5 = 15 , 1+2+3+4+5=15, is equal to the sum of the numbers to the right of 6, which is 7 + 8 = 15. 7+8=15.


Bonus: Generalize it for any set of numbers from k k to n n with proof.


The answer is 35.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

Stephen Mellor
Sep 5, 2017

For the general problem: The sum of the integers from 1 1 to n n is equal to n ( n + 1 ) 2 \frac{n(n + 1)}{2} (as it is the n th triangle number). Therefore, the sum of integers from 1 1 to 49 49 = 49 × 50 2 \frac{49 \times 50}{2} = 1225. Let us remove the number x x from the sum. This means that, excluding x x , the sum of the numbers to the left of x x is the sum of the numbers from 1 1 to x 1 x - 1 = ( x 1 ) ( x ) 2 \frac{(x - 1)(x)}{2} . This is equal to half of the sum of numbers from 1 1 to 49 49 (excluding x x ). Putting this information gives us the equation which we can then simplify:

1225 x 2 \frac{1225 - x}{2} = ( x 1 ) ( x ) 2 \frac{(x - 1)(x)}{2}

1225 x 1225 - x = x 2 x x^2 - x

x x = 1225 \sqrt{1225}

x x = 35 35

Therefore, the answer is 35 \boxed{35} .

For the bonus problem: This time, we need the sum of integers from k k to n n rather than from 1 1 to n n . This can be done by getting the sum of integers from 1 1 to n n and subtracting from this the sum of integers from 1 1 to k 1 k - 1 . Therefore, the sum of integers from k k to n n = n ( n + 1 ) 2 \frac{n(n + 1)}{2} - ( k 1 ) ( k ) 2 \frac{(k - 1)(k)}{2} . Let us again call the number we need to find x x . This means that, excluding x x , the sum of the numbers to the left of x x (from k k to x 1 x - 1 ) is the sum of the numbers from 1 1 to x 1 x - 1 minus the sum of numbers from 1 1 to k 1 k - 1 . This is equal to ( x 1 ) ( x ) 2 \frac{(x - 1)(x)}{2} - ( k 1 ) ( k ) 2 \frac{(k - 1)(k)}{2} . This value plus x x plus this value again is equal to the sum of numbers from k k to n n as the totals on either side of x x are equal. Therefore:

n ( n + 1 ) 2 \frac{n(n + 1)}{2} - ( k 1 ) ( k ) 2 \frac{(k - 1)(k)}{2} = 2 × 2 \times [ {[} ( x 1 ) ( x ) 2 \frac{(x - 1)(x)}{2} - ( k 1 ) ( k ) 2 \frac{(k - 1)(k)}{2} ] {]} + + x x

n ( n + 1 ) 2 \frac{n(n + 1)}{2} - ( k 1 ) ( k ) 2 \frac{(k - 1)(k)}{2} = x ( x 1 ) x(x - 1) - k ( k 1 ) k(k - 1) + + x x

n ( n + 1 ) 2 \frac{n(n + 1)}{2} - ( k 1 ) ( k ) 2 \frac{(k - 1)(k)}{2} = x 2 x^2 - k 2 k^2 + + k k

n 2 + n n^2 + n - k 2 + k k^2 + k = 2 x 2 2x^2 - 2 k 2 2k^2 + + 2 k 2k

n 2 + n n^2 + n + + k 2 k k^2 - k = 2 x 2 2x^2

x 2 x^2 = n 2 + n + k 2 k 2 \frac{n^2 + n + k^2 - k}{2}

x x = the square root of: n 2 + n + k 2 k 2 \frac{n^2 + n + k^2 - k}{2} Note: x has to be positive

Of course, x x has to be an integer as it is from a list of integers (as do n n and k k ). But this is the way to find the number chosen from a list with definitive start and end points.

I did it long hand and found that sum of 1- 19 = sum of 47-49

Marcia Koch - 3 years, 9 months ago

Can you check your working for the bonus part? Substituting in k = 1 k = 1 doesn't give us x = n x = \sqrt{n} .

Calvin Lin Staff - 3 years, 9 months ago

Log in to reply

Substituting in k = 1 k = 1 means that we get x = x = the square root of ( n 2 + n + 1 1 ) / 2 (n^2 + n + 1 - 1) / 2 . Or in other words, the square root of 1/2 x [ n 2 + n n^2 + n ] or the square root of 1/2 x n ( n + 1 ) n(n + 1) . This means that x is equal to the root of the sum of the numbers from 1 to n, which is correct.

x x shouldn't be equal to the root of n n , as I have defined n n as the maximum integer in the list.

Stephen Mellor - 3 years, 9 months ago

Vijay Simha
Sep 9, 2017

This article I read on Brilliant site comes to my mind:

https://brilliant.org/problems/ramanujan-and-mahalanobis/ and this link also narrates the story

https://totient.wordpress.com/2008/05/28/ramanujans-continued-fraction/

Can anybody come up with the Continued Fraction which Ramanujam dictated to Mahalanobis while stirring the vegetables.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...