SOLUTION: The integers 1, 2, 3, ...., 40 are written on white board. An operation is then repeated 39 times. In each repetition any two numbers say a and b currently on white board are erase

Algebra.Com
Question 1172321: The integers 1, 2, 3, ...., 40 are written on white board. An operation is then repeated 39 times. In each repetition any two numbers say a and b currently on white board are erased and new number a + b -1 is written. What will be the number left on white board at the end?
Found 2 solutions by Edwin McCravy, ikleyn:
Answer by Edwin McCravy(20056)   (Show Source): You can put this solution on YOUR website!
The integers 1, 2, 3, ...., 40 are written on white board. An operation is then
repeated 39 times. In each repetition any two numbers say a and b currently on
white board are erased and new number a + b -1 is written. What will be the
number left on white board at the end?
The sum of the numbers on the board is 1+2+3+4+...+40 = 820

When I erase a and b, the sum of the 38 numbers on the board is 820-a-b.
When I replace them with a+b-1, the sum of the 39 numbers on the board is
820-a-b+a+b-1 or 819.

So the sum goes down 1 each time and so does the number of numbers on the board
so when the operation is repeated the 40th time the sum of the numbers on the
board will have gone down by 40 and the sum will be 820-40 or 780.

-----------------

Ikleyn is right.  I got careless once I saw how to do it. It should have been
820-39 = 781.  You can't do a 40th operation.  lol.  Happy Holidays! 

Edwin




Answer by ikleyn(52788)   (Show Source): You can put this solution on YOUR website!
.


            Edwin provided a brilliant starting idea in his post.

            I came to complete/(to fix)  his solution accurately.



If the operation was repeated  39  times,  then the  SINGLE  number which left on the board,  is  820 - 39.

After the  39-th step/operation,  there is  NOTHING  to do;  the algorithm does not work further,
and the  40-th step can not be done  (and is not assumed to be done).


So,  the final number is   820-39 = 781.         ANSWER




RELATED QUESTIONS

How many ways can three items be selected from a group of five items? Use the letters A,... (answered by math_helper)
1) Using the numbers ( 0,1,2,3,4,5,6), how many four digit numbers contain 2 as a digit... (answered by edjones)
You are given two urns, each containing a collection of coloured balls. Urn 1 contains... (answered by ikleyn)
If n is any integer, then 2n is an even integer and 2n + 1 is an odd integer.... (answered by Fombitz)
You have a bag of marbles. In your bag there are 5 red, 3 green, 6 white, 3 blue, and 1... (answered by lynnlo)
1.) There are 15 tiles in a bag. Of these, 7 are purple, 5 are black and the rest are... (answered by solver91311)
An run contains 8 red, 3 white and 9 blue balls if 3 balls are drawn at random, determine (answered by stanbon)
Suppose that an experiment is repeated four times. A certain event has probability 1/10... (answered by venugopalramana)
Suppose that an experiment is repeated four times. A certain event has probability 1/10... (answered by venugopalramana)