In a square table some cells are white and the remaining ones are red. Let be the number of triples of cells, the first two in the same row and the last two in the same column, with and white and red. Find the maximum value can attain.
Solution
We prove that in an square table there are at most such triples.
Let row and column contain and white cells respectively, and let be the set of red cells. For every red cell there are admissible triples with , therefore
We use the inequality to obtain
This is because there are red cells in row and red cells in column . Now we maximize the right-hand side.
By the AM-GM inequality we have
with equality if and only if . By putting everything together, we get
If then any coloring of the square table with white cells in each row and column attains the maximum as all inequalities in the previous argument become equalities. For example color a cell white if , and red otherwise.
Therefore the maximum value can attain is .
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.