Parity of all possible sums

contest-mathelementary-number-theoryproof-explanation

The numbers $1, 2, 3, \dots, 1024$ are written on a blackboard. They are divided into pairs. Then each pair is wiped off the board and non-negative difference of its numbers is written on the board instead. $512$ numbers obtained in this way are divided into pairs and so on. One number remains on the blackboard after ten such operations. Determine all its possible values.

In this soution (1st one), how is it clear that all possible values must have same parity ?

I think I am missing something obvious, pls someone help…

Thankyou

Best Answer

Any integer and it's negative is of same parity. $$a \equiv -a \pmod 2$$

We see $$\pm a_1 \pm a_2 \pm a_3 \ldots \pm a_n \equiv a_1 + a_2 + a_3 + \ldots a_n \pmod 2$$

Any combination of addition, subtraction results in same parity as all additions.