Problem 5
A regular array of lights is defective: toggling the switch for one light causes each adjacent light in the same row and in the same column, as well as the light itself, to change state. Initially all lights are off. After some toggles, exactly one light is on. Find all possible positions of this light.
Step 2 of 6: Rotate the labels
Detailed analysis
Rotate by to obtain . The same local-cross check shows that the second weighted value also has invariant parity under every toggle. Both values start with parity zero because initially all lights are off.