In a chessboard, some cells are colored white, and the remaining cells are colored red. Consider a sequence of three cells , where are in the same column, are in the same row, are white, and is red. Let be the total number of sequences satisfying these conditions. Find the maximum possible value of .
Solution
Let the -th column and the -th row have white cells respectively, and let be the set of red cells. For a red cell with coordinates , there are feasible sequences with . Therefore
Using the inequality , we obtain
this is because in the -th column there are red cells, and in the -th row there are red cells. Now we find the maximum value of expression (1).
By the AM-GM inequality, we have
where equality holds if and only if . Combining all the expressions, we get
If , then any coloring satisfying that each column and each row has white cells will achieve the above maximum value of , because all the inequalities above become equalities. For example:
Color cell white if , and red otherwise; this is a feasible coloring.
In summary, the maximum value that can attain is .