Problem

Source: MOP 2005 Homework - Blue Group #9

Tags: combinatorics unsolved, combinatorics



Exactly one integer is written in each square of an $n$ by $n$ grid, $n \ge 3$. The sum of all of the numbers in any $2 \times 2$ square is even and the sum of all the numbers in any $3 \times 3$ square is even. Find all $n$ for which the sum of all the numbers in the grid is necessarily even.