$8 \times 8$ checkerboard, how many distinct rectangles containing at least $4$ black squares

combinatorics

An $8 \times 8$ checkerboard has alternating black and white squares. How many distinct rectangles, with sides on the grid lines of the checkerboard and containing at least $4$ black squares, can be drawn on the checkerboard?

I ended up getting$$3(2) + 5(2)(2) + (6(2)(2) – 2) + (5(2)(2) – 2) + (4(2)(2) – 2) + (3(2)(2) – 2) + (2(2)(2) – 2) + 1 = 97.$$ Is this correct?

EDIT: By distinct I mean not identical — for example a $1 \times 4$ rectangle that begins with a black square would be considered the same as another $1 \times 4$ rectangle that begins with a black square, and those would be different from both (1) a $1 \times 4$ rectangle that begins with a white square and (2) a $4 \times 1$ rectangle.

Best Answer

For rectangles, if there exists an $a\times b$ rectangle with $a\neq b$ such that it contains at least four black squares, then its transpose $b\times a$ will certainly be a distinct rectangle with at least four black squares that will fit on the chessboard. Similarly, any rectangle such that its transpose is a distinct rectangle will have the property that reversing the colors within the rectangle is possible by shifting it (for example, the only two $7\times 8$ rectangles on the board are both distinct, as one has a white square in the upper left corner while the other has a black square in the upper left corner). Thus for any $a\times b$ rectangle that has at least four white squares, reversing the colors (by shifting one row up or down as needed) will contain at least four black squares. This is true for any $a\times b$ rectangle that possesses at least four black squares except $1\times 7$ rectangles. A $1\times 7$ rectangle that possesses four black squares only contains three white squares.

Next, let's consider squares. The smallest $a\times a$ square that contains at least four black squares is the $3\times 3$ square. This contains either 5 black and 4 white or 4 black and 5 white. Its transpose will be nondistinct. But, shifting it one row or column will reverse the colors and be distinct. Thus, each such square will have a second "copy" except for the $8\times 8$ square because it cannot be shifted any rows or columns to reverse the colors.

This yields:

$1\times 7, 7\times 1$: 2 distinct, count each once

$1\times 8, 2\times 4^+, 3\times 4^+, 4\times 5^+, 5\times 6^+, 6\times 7^+, 7\times 8$: 21, count each four times.

$3\times 3, 4\times 4, 5\times 5, 6\times 6,7\times 7$: 5, count each twice.

$8\times 8$: Count once.

For this count, I am using $2\times 4^+$ to represent all distinct pairs where the second number is at least 4, thus $2\times 4, 2\times 5, 2\times 6, 2\times 7, 2\times 8$ are all represented by this shorthand.

This yields $2+21\cdot 4+5\cdot 2+1 = 97$, which is the answer you arrived at.