For any triangle in the plane, it can be shown that there is a unique ellipse with largest area that is completely inside .
For a given , consider triangles such that:
- the vertices of have integer coordinates with absolute value , and
- the foci1 of the largest-area ellipse inside are and .
Let be the sum of the areas of all such triangles.
For example, if , there are two such triangles. Their vertices are and , and the area of each triangle is . Thus .
It can be verified that , and .
Find .
1The foci (plural of focus) of an ellipse are two points and such that for every point on the boundary of the ellipse, is constant.
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.