Counting Squares in a Figure

A full grid has a formula for its squares. Knock a piece out and the formula no longer applies, but the counting stays systematic if you work size by size.

--

A full grid has a formula for its squares. Knock a piece out of it and the formula no longer applies — but the counting is still systematic, provided you work size by size and check which squares survive the gap.

Theorem The full grid first

In a complete grid the number of squares is .

The trap is counting only the little cells. The whole grid is a square too, and so is every block in between. Count by size:

In a grid there are four squares and one square.

squares in all.

A grid follows the same pattern: nine , four and one , giving .

Concept Two ways to handle a gap

When part of the grid is missing, the formula alone will overcount. Either approach works:

1. Subtract. Count the full grid with the formula, then remove every square that passes through the gap.
2. Count by size. Count the cells that remain, then the blocks that are still complete, and so on.

The second method is usually safer. Subtracting requires spotting every square the gap destroys, which is easy to get wrong; counting survivors only asks what is actually there.

Example A missing corner
A grid with one corner cell removed
squares remaining:
squares still complete:
No square survives
squares

The full grid would have given . Removing one small cell cost three squares altogether: the cell itself, one block and the whole.

Example Two opposite corners

Now remove two opposite corners from the grid.

squares remaining:
squares still complete:
squares

Each removed corner destroys the one block sitting in that corner, so two corners leave two of the four blocks intact.

Example A missing centre

Remove the middle cell of the grid instead.

squares remaining:
Every block contains the centre cell, so none survives
The whole is gone too
squares

Compare this with the missing-corner case. The same single cell was removed, yet the centre is far more destructive because every larger square passes through it. Where the gap sits matters as much as how big it is.

Example A cross, and a larger gap

a) A plus-shaped cross of five cells

squares:
All four corners are missing, so no block is complete
squares

b) A grid with a corner block removed

squares remaining:
squares still complete:
No or survives
squares, against for the full grid

Work upward through the sizes and stop as soon as a size yields nothing — no larger size can survive either.

Summary
  1. A complete grid holds squares.
  2. Never count only the smallest cells — every larger block is a square too.
  3. For an incomplete figure, count size by size and keep only the complete blocks.
  4. Alternatively, take the full-grid total and subtract every square the gap ruins.
  5. A central gap destroys far more squares than a corner gap of the same size.
  6. Once a size yields no squares, stop — no larger size can survive.