Quoto

Learn / Library / Brainteasers

Differences on a board

BrainteasersMedium

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.

A whole number, a decimal, a fraction like 3/8 or a percent.

Hint

Look at the parity of the total.

Solution
  1. Replacing and by changes the sum by , an even number, so the parity of the sum never changes.
  2. The starting sum is , which is odd, so the last number is odd and at least .
  3. The value is reachable: replace and , and , and , and by their differences, which leaves copies of .
  4. Then pairs of these give and , those give , and the last move on and leaves .
  5. So the smallest possible value is .

Answer: