Master Mathematics.

Combinatorics · Hard · Basic Counting · Problem 3

A 2 × n board with even or odd sums

Consider a board having rows and columns, so cells. Each cell is to be filled by or . (a) In how many ways can this be done such that each row sum and each column sum is even? (b) In how many ways can this be done such that each row sum and each column sum is odd?

Source: ISI BStat/BMath