A triangle is cut into four pieces by two straight lines, each starting at one vertex and ending on the opposite edge. This results in forming three smaller triangular pieces, and one quadrilateral. If the original triangle has an integral area, it is often possible to choose cuts such that all of the four pieces also have integral area. For example, the diagram below shows a triangle of area that has been cut in this way.
Representing the areas as and , in the example above, the individual areas are , , and . It is also possible to cut a triangle of area such that , , , .
Define a triangle cutting quadruple as a valid integral division of a triangle, where is the area of the triangle between the two cut vertices, is the area of the quadrilateral and and are the areas of the two other triangles, with the restriction that . The two solutions described above are and . These are the only two possible quadruples that have a total area of .
Define as the sum of the area of the uncut triangles represented by all valid quadruples with . For example, .
Find .
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.