2

Let $n$ be an integer greater than $0.$ The numbers $1, 2, 3, \ldots, n$ are written on a blackboard. We decide to erase from the blackboard any two numbers, and replace them with their nonnegative difference. After this is done several times, a single number remains on the blackboard. For which values of $n$ can this number equal $0$?

I've noticed that as long as $n \equiv 0, 3 \pmod 4,$ the number will equal $0.$ However, how do I prove this? Haven't really done any proof problems before.

0 Answers0