• Foundation
  • About 12 min
  • 5 practice questions

Squares and rectangles in L, plus and other cell patterns

Count squares and rectangles in figures that are not full grids by listing shapes of each size and checking that every cell they cover is present.

If something looks wrong, please tell us.

So far, grids have been complete rectangles of cells. Exam figures are often irregular: an L shape, a plus sign, a ring with a hole in the middle, or a grid with one cell removed. The formulas for full grids no longer apply directly, but the method of counting by size still works. The one new rule is that a square or rectangle counts only if every cell inside it is part of the figure.

Count by shape, smallest first

  1. Count the single cells: these are the smallest squares and rectangles.
  2. Count pairs of neighbouring cells (1 by 2 and 2 by 1 rectangles).
  3. Count straight runs of three cells (1 by 3 and 3 by 1).
  4. Count 2 by 2 blocks, which are squares, and other larger blocks, checking that all their cells are present.
  5. Add the counts. Squares are those rectangles with equal sides.

In the pictures below X marks a cell of the figure and a dot marks an empty place.

The L shape (5 cells)
Col 1Col 2Col 3
X..
X..
XXX
The plus shape (5 cells)
Col 1Col 2Col 3
.X.
XXX
.X.

A rectangle counts only if all its cells are in the figure. Count single cells, pairs, runs of three, and then blocks.

— Rule to remember

Worked examples

Example 1 (the L shape). Single cells: 5. Pairs: the vertical column gives 2 and the bottom row gives 2, so 4. Runs of three: the column and the row, so 2. There is no 2 by 2 block. Rectangles: 5 plus 4 plus 2 is 11. Squares: only the 5 single cells, so 5.

Example 2 (the plus shape). Single cells: 5. Pairs: the centre with each of its four neighbours, so 4. Runs of three: the vertical line and the horizontal line, so 2. No 2 by 2 block exists, because every 2 by 2 block would include an empty corner. Rectangles: 11. Squares: 5.

Example 3 (a ring). A 3 by 3 block with the centre cell removed has 8 cells. Single cells: 8. Pairs: each side of the ring has 2 pairs, so 8 in all. Runs of three: the four sides, so 4. Rectangles: 8 plus 8 plus 4 is 20. Squares: 8.

Example 4 (a grid with a corner removed). In a full 4 by 4 grid there are 100 rectangles and 30 squares. Remove one corner cell. A rectangle is lost if it contains that cell. Those rectangles all have the corner as one of their corners, and may extend 1 to 4 cells across and 1 to 4 down, so there are 4 times 4, which is 16 of them. Of these, 4 are squares. Rectangles left: 100 minus 16 is 84. Squares left: 30 minus 4 is 26.

Key takeaways

  • List by size: single cells, pairs, runs of three, then blocks.
  • Check that every cell of a candidate is present.
  • For a full grid with one cell removed, subtract the shapes that contain the missing cell.
  • Squares are the rectangles with equal sides.

Check your understanding

  1. 1. How many rectangles of all sizes (squares included) are in the L shape of 5 cells described above?

    1. 10
    2. 9
    3. 11
    4. 15
    Show answer

    Answer: C. 5 single cells, 4 pairs and 2 runs of three give 11.

  2. 2. How many squares of all sizes are in the plus shape of 5 cells?

    1. 9
    2. 4
    3. 6
    4. 5
    Show answer

    Answer: D. Only the 5 single cells are squares, since no 2 by 2 block is complete.

  3. 3. A 3 by 3 grid has its centre cell removed. How many rectangles of all sizes are in what remains?

    1. 16
    2. 20
    3. 24
    4. 36
    Show answer

    Answer: B. 8 single cells, 8 pairs and 4 runs of three give 20.

  4. 4. A 4 by 4 grid has one corner cell removed. How many squares of all sizes remain?

    1. 26
    2. 25
    3. 27
    4. 30
    Show answer

    Answer: A. A full grid has 30 squares. The squares that contain the missing corner are 4 (one of each size), so 30 minus 4 is 26.

  5. 5. A staircase has 1 cell in the top row, 2 in the middle row and 3 in the bottom row, all pushed to the right. How many squares of all sizes does it contain?

    1. 9
    2. 6
    3. 8
    4. 7
    Show answer

    Answer: D. There are 6 single cells and one 2 by 2 block (the right-hand cells of the middle and bottom rows), so 7.

Privacy · Terms · Refunds · Delivery