9.79 On an infinitely large grid paper, there are cells that have been colored black. Try to prove that it is possible to cut out a finite number of squares from this grid paper, such that they satisfy the following two conditions:
(1) All black cells are within the squares that have been cut out;
(2) In any of the squares that have been cut out, the area of the black cells is not less than of the area of the square and not more than of the area of the square.
Problem 1007
Official solution
[Proof] First, draw a large square of size on the grid paper, such that it contains all black cells and the total number of white cells is at least 4 times the number of black cells. It is clear that the total area of the black cells is no more than of the area of . Then divide into 4 squares , each containing cells. In each , the total area of the black cells does not exceed of the area of . If any of these 4 squares satisfy condition (2), select them; if a contains no black cells, remove it. For the squares that do not fall into these two cases, repeat the above process, i.e., divide each of them into 4, ..., until no more squares can be divided or until squares are obtained. At this point, remove those with no black cells, and select the small squares with 1, 2, or 3 black cells.