Problem

Source: 2016 Azerbaijan JBMO TST, D2 P3

Tags: combinatorics, Color problem



All cells of the $m\times n$ table are colored either white or black such that all corner cells of any rectangle containing the cells of this table with sides greater than one cell are not the same color. For values $m = 2, 3, 4,$ find all $n$ such that the mentioned coloring is possible.