How Many Squares in a Checkerboard?
Last week we looked at ways to count paths along the edges of a rectangular grid. Now we’ll look at a companion problem: counting the number of squares (or rectangles) of all sizes in a square (or rectangular) grid. This, too, is a very common question, and I’ll be picking just a few of many …