There is a grid of lights. There is a switch at the top of each column and on the left of each row. A light will only turn on if the switches corresponding to both its column and its row are in the "on" position. Compute the number of different configurations of lights.
Problem 784
Official solution
Solution:
Take any configuration of switches such that there exists at least one row and one column which are switched on. There are such configurations.
We prove that any two such configurations and lead to a different set of lights. Without loss of generality assume has row switched on and doesn't have row switched on. Thus, configuration will contain at least one light turned on in row (since there exists at least one column switch which is turned on), while configuration contains zero such lights turned on. Thus configuration and lead to different sets of lights.
All configurations where all columns or all rows are turned off lead to all lights being turned off. We add 1 extra option to account for this case, getting total possibilities.