The first 5 0 natural numbers are written on a board. You apply the following operation 4 9 times, until you arrive at one final number:
Select any two numbers from the board, a and b .
Erase those two numbers, and replace them with ∣ a − b ∣ .
Determine the sum of all possible values for the final value remaining number on the board.
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.
What's going on with my L A T E X @Calvin Lin ?
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
Problem Loading...
Note Loading...
Set Loading...
I'll start off by claiming that any odd positive integer ≤ 5 0 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 = 6 2 5 . Here's why:
The initial sum of the numbers on the board is simply 1 + 2 + 3 + 4 ⋯ = 1 2 7 5 , which is odd. Each operation of replacing a and b with ∣ a − b ∣ (assuming WLOG a ≤ b ) will decrease the sum by 2 a :
S new = S old − ∣ a − b + ∣ a − b = S old − b − a + b − a = S old − 2 a .
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 1 2 7 5 .
Furthermore, all the numbers on the board are always nonnegative. They're also all less than or equal to 5 0 .
We will now show that any odd integer from 1 to 4 9 , inclusive, can be obtained by applying the puzzles's operation 4 9 times. Let k be such a number. We can obtain it by subtracting 1 from 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 ) , … , ( 4 9 , 5 0 )
to get 2 4 ones on the board while erasing the above pairs. Applying the operation to the 2 4 pairs of ones yields 1 2 zeros which can be reduced to a single 0 . Finally, after applying the operation to the remaining numbers, k + 1 and 1 , yields k . :D