11. a. Any feasible state of the board can be described by an ×binary
matrix, in which the element in the th row and th column is equal to
1 if and only if the corresponding panel is lit. Let and be such
matrices representing the initial and final (all-zeros) boards, respectively.
The impact of toggling the panel at ( )on a board represented by a
Let is the number of times the ( )panel is toggled in a solution that
transforms the board from a starting state to a final state Since the
ultimate impact of toggling this panel depends only on whether is even
orodd,wecanassumewithnolossingeneralitythat is either 0 or 1.
Then a solution to the puzzle can be expressed by the matrix equation
Note: This solution follows Eric W. Weisstein et al. “Lights Out Puzzle”
from MathWorld—A Wolfram Web Resource at http://mathworld.wolfram.com/LightsOutPuzzle.html
b. The system of linear equations for the instance in question (see part a)
is
21