Problem

Source: St Petersburg 11.7

Tags: geometry, rectangle, ratio



A square is cut into red and blue rectangles. The sum of areas of red triangles is equal to the sum of areas of the blue ones. For each blue rectangle, we write the ratio of the length of its vertical side to the length of its horizontal one and for each red rectangle, the ratio of the length of its horizontal side to the length of its vertical side. Find the smallest possible value of the sum of all the written numbers.