A 7 × 7 grid with no rectangle of marked cells
Statement
Some cells of a board are marked so that no four marked cells are the corners of a rectangle with sides parallel to the grid. What is the largest possible number of marked cells?
Hint
Count pairs of marked cells that lie in the same row. Each pair of columns can occur in at most one row. Then use convexity.
Show solutionHide solution
Solution
Idea. Count (row, pair of marked columns in that row).
Upper bound. Let be the number of marked cells in row , and . A pair of columns can appear in at most one row. There are pairs of columns, so
By convexity, . If , this is at least , a contradiction. So .
Construction with . Number rows and columns and mark in row the columns . The set is a perfect difference set modulo : any two rows share exactly one marked column, so there is no rectangle; marked cells.
Answer. . (This is the incidence matrix of the Fano plane.)
Lesson. Count pairs inside each row, apply convexity, and look for a design that achieves the bound.