The diagram consists of thirty-four squares. Using only the grid
lines to form squares, how many squares of all sizes are in the
diagram?
Problem 416
Pick one
Official solution
We can systematically count the number of squares by considering
the possible sizes of the squares.
Case 1: Squares of size .
There are 34 such squares.
Case 2: Squares of size .
Begin with a square in
the top left corner of the diagram. Shifting this square one column to the right
gives a second square.
Shifting this second
square one column to the right again gives a third square. Thus, there are such squares within the top two rows
of the diagram.
Each of these squares can be
shifted down one row to give more
squares, each contained
within the second and third rows of the diagram. Continuing in this way,
there are such squares within rows three and
four, rows four and five, rows five and six, and rows six and seven.
Thus, there are such
squares.
The first and the last of these
squares are shown in the following diagram.
[[IMAGE0]]
There are additional squares. One of these occupies
the leftmost two squares within rows five and six. This square can be
shifted down one row, and each of these squares can be shifted four
columns to the right. The first and the last of these 4 squares are
shown in the following diagram.
[[IMAGE1]]
In total, there are
squares of size .
Case 3: Squares of size .
Beginning with a square
in the top left corner of the diagram and counting in a similar way,
there are such squares within the top three
rows of the diagram.
There are such squares within rows two through
four, rows three through five, rows four through six, and finally rows
five through seven. Thus, there are such squares. The first and the last
of these squares are shown in
the following diagram.
[[IMAGE2]]
There are additional squares. One of these occupies
the leftmost three squares within rows five through seven. The second of
these occupies the rightmost three squares within rows five through
seven.
These squares are shown in the
following diagram.
[[IMAGE3]]
In total, there are
squares of size .
Case 4: Squares of size .
There is a square that
occupies all four columns within rows one through four. This square can
be shifted downward one row to occupy rows two through five, shifted
downward one row again to occupy rows three through six, and finally one
more time to occupy rows four through seven. These are the only squares and thus there are in total. The first and the last of
these squares are shown in the
following diagram.
[[IMAGE4]]
There are no squares with dimensions greater than , and so there are squares of all sizes in the
diagram.