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 4 of 6: Realize the first position
Detailed analysis
Toggle exactly the cells in (coordinates are row, column). Directly adding the local crosses modulo 2 leaves only on. Rotating the whole toggle set gives the analogous construction for , , and .