Learn / Library / Brainteasers
Differences on a board
The numbers to are written on a board. A move erases any numbers and writes the absolute value of their difference. After moves a single number is left. What is the smallest value it can have?
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
Look at the parity of the total.
Solution
- Replacing and by changes the sum by , an even number, so the parity of the sum never changes.
- The starting sum is , which is odd, so the last number is odd and at least .
- The value is reachable: replace and , and , and , and by their differences, which leaves copies of .
- Then pairs of these give and , those give , and the last move on and leaves .
- So the smallest possible value is .
Answer: