Academy
Maths›Number Theory›Squares are made of pairs

Squares are made of pairs

Why a perfect square has every prime brick in pairs, and how to use that to test, build and count squares.

You need one thing from before: every number is a wall of prime bricks (2, 3, 5, 7, ...), built in only one way.

The picture

A square floor, 4 tiles by 4 tiles. It has 4 × 4 = 16 tiles.

Break each 4 into bricks: 4 = 2 × 2. So 16 = (2 × 2) × (2 × 2) = 2 × 2 × 2 × 2. That is four 2-bricks.

Another floor, 6 tiles by 6 tiles. It has 6 × 6 = 36 tiles. Break each 6 into bricks: 6 = 2 × 3. So 36 = (2 × 3) × (2 × 3) = 2 × 2 × 3 × 3. That is two 2-bricks and two 3-bricks.

Look at the bricks. Every brick comes twice. Once from the first 6, once from the second 6.

The idea

A square is a number times itself. The first copy has some bricks. The second copy has the same bricks. So every brick appears in pairs.

So the number of each brick is even: 0, 2, 4, 6, ...

Zero counts as even. The number 1 has no bricks at all, and 1 = 1 × 1 is a square.

A number like this is called a perfect square. Let us call this the pairs rule: in a perfect square, every brick comes in pairs.

Use it to test

Is 72 a perfect square?

72 = 2 × 2 × 2 × 3 × 3. There are three 2-bricks. Three is odd, so one 2-brick has no partner. So 72 is not a perfect square.

Use it to build

144 = 2 × 2 × 2 × 2 × 3 × 3. Make the pairs: (2, 2), (2, 2), (3, 3).

Take one brick from each pair: 2 × 2 × 3 = 12. And 12 × 12 = 144.

Where this takes us

Take 360 = 2 × 2 × 2 × 3 × 3 × 5. Which of its factors are perfect squares?

A square factor can use only pairs of the bricks 360 has:

  • 2-bricks: 360 has three. A square factor can use 0 or 2 of them.
  • 3-bricks: 360 has two. It can use 0 or 2.
  • 5-bricks: 360 has one. It can use 0 only, because one 5 has no partner.

That is 2 × 2 × 1 = 4 square factors: 1, 4, 9 and 36.