Adding numbers

There are 40 numbers on the blackboard from 1 to 40.we are selecting the two numbers a,b randomly and placing a new number a + b - 1 on deleting both numbers a and b.Find the last number left on the blackboard.

820 781 789 782

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.

2 solutions

This is quite easy. Forget the question. Assume the numbers are a, b, c, d. Now, at first you'll get (a+b-1),c,d. Then you'll get {(a+b-1)+c-1},d. Then you'll get [{(a+b-1)+c-1}+d-1}]. Now observe this. You can realize that it's nothing but some less than the summation of all given numbers. How less? It's 1 when you add 2 numbers. 2 when you add 3 numbers. so it's 39 when you add 40 numbers. So 1+2+3...+40= 40*41/2=820. And the answer is 820-39=781.

Soumava Pal
Aug 11, 2014

another way of seeing this is if the total sum is X then after the first operation there are 39 remaining no.s and the total sum is X+(a+b-1)-a-b=X-1.after 2nd operation the sum is x-2..........................after the 39th operation ther is 1 no. left and the total sum is X-39 which is precisely equal to the no. left. now X=40*41/2=820. so our reqd ans is X-39=820-39=781

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...