numbers from 1 to n in each column and row of a nxn board, grey cells
Source: Dutch NMO 2012 p2
September 6, 2019
boardsquare gridColoringcombinatorics
Problem Statement
We number the columns of an -board from to . In each cell, we place a number. This is done in such a way that each row precisely contains the numbers to (in some order), and also each column contains the numbers to (in some order). Next, each cell that contains a number greater than the cell's column number, is coloured grey. In the figure below you can see an example for the case .[asy]
unitsize(0.6 cm);int i;fill((0,0)--(1,0)--(1,1)--(0,1)--cycle, gray(0.8));
fill(shift((1,0))*((0,0)--(1,0)--(1,1)--(0,1)--cycle), gray(0.8));
fill(shift((0,2))*((0,0)--(1,0)--(1,1)--(0,1)--cycle), gray(0.8));for (i = 0; i <= 3; ++i) {
draw((0,i)--(3,i));
draw((i,0)--(i,3));
}label("", (0.5,3.5));
label("", (1.5,3.5));
label("", (2.5,3.5));
label("", (0.5,2.5));
label("", (1.5,2.5));
label("", (2.5,2.5));
label("", (0.5,1.5));
label("", (1.5,1.5));
label("", (2.5,1.5));
label("", (0.5,0.5));
label("", (1.5,0.5));
label("", (2.5,0.5));
[/asy](a) Suppose that . Can the numbers be placed in such a way that each row contains the same number of grey cells?
(b) Suppose that . Can the numbers be placed in such a way that each row contains the same number of grey cells?