Consider two vectors $(a_1, \dots, a_n), (b_1, \dots, b_n) \in \{0,1\}^n$ such that they both contain an even amount of ones. Is there an easy way to see that the set $\{i: a_i \neq b_i\}$ has even order? I.e., the two vectors are different in an even amount of positions.
I proved it by induction, but I'm looking for something simpler and more intuitive. Thanks.
$\newcommand{\1}{\mathbf{1}}$One possibility: let $\1$ denote the vector where each component is $1$. Note that a binary vector has an even number of $1$'s iff the sum of its elements is even (congruent to $0$ mod $2$). Thus $$\1^T \mathbf{a} \equiv 0\pmod{2}\quad\text{and}\quad \1^T\mathbf{b} \equiv 0\pmod{2}.$$ Hence $$\1^T(\mathbf{a} - \mathbf{b}) \equiv 0\pmod{2},$$ so the vector $\mathbf{a} - \mathbf{b}\in\{0,1\}^n$ (using mod $2$ arithmetic) has an even number of $1$'s. This means that $\mathbf{a}$ and $\mathbf{b}$ differ in an even number of places. (You can show that $a_i - b_i \equiv 1 \pmod{2}$ iff $a_i\ne b_i$, for $a_i,b_i\in\{0,1\}$.)