I have this question where u are given 6 numbers with indices 1,2,3,4,5,6 and u are given the xor of these numbers in pair of 3.
$$x_1\oplus x_2⊕x_3=a\\ x_2⊕x_3⊕x_4=b\\ x_3⊕x_4⊕x_5=c\\ x_4⊕x_5⊕x_6=d\\ x_5⊕x_6⊕x_1=e\\ x_6⊕x_1⊕x_2=f$$
and we need to find all the six numbers. What i tried was to take xor of these triplets to get xor of any other pair (which worked for me for 4 and 5 numbers) but this method is not working for 6 numbers.
my attempt for n=4.
$$x_1⊕x_2⊕x_3=a\\ x_2⊕x_3⊕x_4=b\\ x_3⊕x_4⊕x_1=c\\ x_4⊕x_1\oplus x_2=d$$
$a⊕b⊕c$ gives me the 3rd number. Similarly we can get the rest of the numbers, but i cant figure out a solution for 6 numbers.
Guide:
We have
$$x_1 \oplus x_2 \oplus x_3 \oplus x_4 \oplus x_5 \oplus x_6= a\oplus d= b \oplus e = c \oplus f$$
Hence, to be feasible, we require $$a\oplus d= b \oplus e = c \oplus f.$$
Suppose the system above holds, to solve the system, we first choose our desired $x_5$ and $x_6$ and solve for $x_4, x_3, x_2, x_1$ in that order.