Find $8$ distinct $8$-bit numbers, each with $4$ bits set to one, such that the cumulative XOR of these bytes is $10101010$.
I imagine there are multiple answers, so the first correct answer wins the prestigious check mark.
For non-mathmo's,
- $0 \operatorname{XOR} 0=0$
- $0 \operatorname{XOR} 1 = 1$
- $1 \operatorname{XOR} 0 = 1$
- $1 \operatorname{XOR} 1 = 0$
$\operatorname{XOR}$ is commutative, and therefore the question wants an even number of bits set in columns that result in $0$, and an odd number of bits set in columns that result in a $1$.
For example,
1 1 0 0 0 1 1 0 0 0 1 1 ------- 1 0 0 1