5. A rectangle was cut into nine squares, as shown in the figure. The lengths of the sides of the rectangle and all the squares are integers. What is the smallest value that the perimeter of the rectangle can take?
!
5. A rectangle was cut into nine squares, as shown in the figure. The lengths of the sides of the rectangle and all the squares are integers. What is the smallest value that the perimeter of the rectangle can take?
!
Answer: 52.
Solution. Inside the square, we will write the length of its side. Let the sides of the two squares be and , and we will sequentially calculate the lengths of the sides of the squares.
!
!
The sum of the lengths of the sides of the two squares adjacent to the left side of the rectangle is equal to the sum of the lengths of the sides of the two squares adjacent to the right side of the rectangle. We get the equation
Thus, to minimize the perimeter of the rectangle, we need to choose , . It is easy to check that with these values, the rectangle will have dimensions , and its perimeter will be 52.