Problem

Source: Thailand Mathematical Olympiad 2015 p6

Tags: combinatorics



Let $m$ and $n$ be positive integers. Determine the number of ways to fill each cell of an $m \times n $ table with a number from $\{-2, -1, 1, 2\}$ so that the product of the numbers written in each row and column is $-2$.