it solves a problem like: "How many squares are in a 8 square by 8 square grid?" It can also solve a problem like "How many squares are in a 50 square by 90 square grid?" So, it doesn't have to be a perfect square.