Find number of ways we can select cells from a nXn grid such that the number of cells selected from each row and column is odd.
Any hints?
Find number of ways we can select cells from a nXn grid such that the number of cells selected from each row and column is odd.
Any hints?
Fill in the first $n-1$ rows (almost) arbitrarily with $0$'s and/or $1$'s, the only condition being that each row sum is odd. There are $2^{n-1}$ ways to do it for each row, for a total of $(2^{n-1})^{n-1}=2^{(n-1)^2}$.
Now fill in the last row to make all column sums odd. There is a unique way to do this.
Finally, argue that the last row sum is odd. There are two cases, $n$ odd and $n$ even. If $n$ is odd, the total number of $1$'s is odd, because each column sum is odd. Since the sum of the first $n-1$ rows is even, the last row sum is odd.
If $n$ is even, then the total is even, but the sum of the first $n-1$ rows is odd, so again the the last row sum is odd.