Say you have a white NxN grid, but you have the choice to make any cell you want black. How many ways are there to color the grid, without the ith column and ith row being the same for any i?
For example
W W B
B B B
B W B
would be a valid coloring, but
W W B
W B B
B W B
would not be because the first row and column are equal.
For example
W W B
B B B
B W B
would be a valid coloring, but
W W B
W B B
B W B
would not be because the first row and column are equal.