← Complete problem index

PROJECT EULER · #0695

Random Rectangles

Statement only · UnsolvedOriginal problem ↗

Three points, P1, P2 and P3, are randomly selected within a unit square. Consider the three rectangles with sides parallel to the sides of the unit square and a diagonal that is one of the three line segments P1P2, P1P3 or P2P3 (see picture below).

3 random rectangles

We are interested in the rectangle with the second biggest area. In the example above that happens to be the green rectangle defined with the diagonal P2P3.

Find the expected value of the area of the second biggest of the three rectangles. Give your answer rounded to 10 digits after the decimal point.

Write-up coming later

The complete problem is available here. An approach, code, and answer will be added later.