A Complex Function

The first 50 50 natural numbers are written on a board. You apply the following operation 49 49 times, until you arrive at one final number:

  • Select any two numbers from the board, a a and b b .

  • Erase those two numbers, and replace them with a b |a-b| .

Determine the sum of all possible values for the final value remaining number on the board.


The answer is 625.

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.

1 solution

Finn Hulse
May 12, 2014

I'll start off by claiming that any odd positive integer 50 \leq 50 is attainable and thus the sum of the solutions will simply be (using the formula for the sum of consecutive odd numbers) 2 5 2 = 625 25^2=\boxed{625} . Here's why:

The initial sum of the numbers on the board is simply 1 + 2 + 3 + 4 = 1275 1+2+3+4\dots=1275 , which is odd. Each operation of replacing a a and b b with a b |a-b| (assuming WLOG a b a \leq b ) will decrease the sum by 2 a 2a :

S new = S old a b + a b = S old b a + b a = S old 2 a S{\text{new}}=S{\text{old}-|a-b+|a-b}=S{\text{old}}-b-a+b-a=S{\text{old}}-2a .

This immediately implies that the new sum must be odd if the old sum was odd, and therefore no even number can result from repeated applications of such an operation starting with 1275 1275 .

Furthermore, all the numbers on the board are always nonnegative. They're also all less than or equal to 50 50 .

We will now show that any odd integer from 1 1 to 49 49 , inclusive, can be obtained by applying the puzzles's operation 49 49 times. Let k k be such a number. We can obtain it by subtracting 1 1 from k + 1 k+1 . Then we can apply the operation to the pairs of the remaining consecutive integers

( 2 , 3 ) , ( 4 , 5 ) , , ( k 1 , k ) , ( k + 2 , k + 3 ) , , ( 49 , 50 ) (2,3),(4,5),\dots, (k-1,k),(k+2,k+3),\dots,(49, 50)

to get 24 24 ones on the board while erasing the above pairs. Applying the operation to the 24 24 pairs of ones yields 12 12 zeros which can be reduced to a single 0 0 . Finally, after applying the operation to the remaining numbers, k + 1 k+1 and 1 1 , yields k k . :D

What's going on with my LaTeX \LaTeX @Calvin Lin ?

Finn Hulse - 7 years, 1 month ago

Log in to reply

You have an extra " } " at the end of the first " \text{old} "

Correct LATEX code , "S {\text{new}}=S {\text{old}-|a-b+|a-b}=S {\text{old}}-b-a+b-a=S {\text{old}}-2a"

gives S new = S old a b + a b = S old b a + b a = S old 2 a S_{\text{new}}=S_{\text{old}-|a-b+|a-b}=S_{\text{old}}-b-a+b-a=S_{\text{old}}-2a

Siddhartha Srivastava - 7 years, 1 month ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...