Rectangles on a Chessboard
How many rectangles of any size, with sides along the grid lines, can be drawn on an chessboard? (Squares count as rectangles.)
Work it out, then compare with the answer.
SolutionShow the worked solution
A rectangle with sides on the grid lines is fixed by its two vertical sides and its two horizontal sides. Its vertical sides are two distinct vertical lines out of the , and its horizontal sides are two distinct horizontal lines out of the . Conversely, any two vertical lines and any two horizontal lines bound exactly one such rectangle. This is a bijection, so the number of rectangles is
Generalisation. An board contains rectangles.
Variations
The same idea with a twist. Each solution gives only the changed step.
Inside a transparent cube made of unit cubes, how many distinct rectangular boxes (of any dimensions, not necessarily cubes) can be formed from the grid lines, counting two boxes as the same if one is a rotation of the other?
Work it out, then compare with the answer.
Solution
A box is a region of the cube bounded by grid planes. The same region counts once, whichever of its edges we call length, width or height. In each of the three directions there are grid planes. A box is fixed by choosing of them in each direction, and every such choice gives exactly one box. The number of boxes is therefore
If the question instead asked only for the number of different box shapes up to rotation, we would count multisets with . There are of these.
On a grid, every square in the middle row is shaded. A rectangle with sides along the grid lines is chosen uniformly at random from all such rectangles. Find the probability that it contains at least one shaded square.
Work it out, then compare with the answer.
Solution
Number the horizontal grid lines . The shaded middle row lies between lines and .
A rectangle misses the shaded row exactly when both of its horizontal sides lie among lines , or both lie among lines . Each of these sets contains lines. The choice of vertical sides is independent of this and cancels from the ratio. Hence
and