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 3 of 6: Restrict a single light
Detailed analysis
If exactly one cell is on, each invariant equals the label of that cell. Since both invariant parities are zero, the cell must have value zero in both labelings. Reading the two matrices gives exactly .