A poster measures cm by cm. It is to be cut into identical squares with nothing left over.
What is the largest possible side length of a square, and what is the smallest possible number of squares?
Translate “nothing left over” into a divisibility condition. If the square has side , then whole squares must fit along both edges, so and must each be a whole multiple of :
In other words is a common factor of and , and the largest permissible is their greatest common factor. This is the whole content of the problem — the geometry only supplies the divisibility.
Find the GCF by prime factorisation.
The GCF takes each shared prime to the smaller of its two exponents. The prime appears only in , so it contributes nothing; the prime appears with exponent and , so it contributes :
So the largest square has side cm. (The Euclidean algorithm gives the same result faster: , , , , so the last non-zero remainder is .)
Count the squares along each edge.
Both divisions come out whole, confirming the tiling really works with no offcuts.
Multiply to get the number of squares.
Check it against the areas: the poster is cm² and each square is cm², and . ✓ The two counts must agree because the pieces exactly cover the sheet.
Explain why the largest square gives the fewest squares. The number of pieces is , which decreases as grows. So maximising the side length and minimising the piece count are the same question asked twice — the two parts of the problem are answered by the single number . Any smaller common factor works too but wastes cuts: gives squares and gives .
Need to solve a different problem like this? Open the solver →