5. If the distances from the center of the ellipse to the focus, the endpoint of the major axis, the endpoint of the minor axis, and the directrix are all positive integers, then the minimum value of the sum of these four distances is .
Problem 589
Official solution
5.61.
Let the equation of the ellipse be , the distances from the center of the ellipse to the endpoints of the major axis, the endpoints of the minor axis, the foci, and the directrices are , , , respectively, and satisfy
Since , , form a Pythagorean triple, the Pythagorean triples satisfying are
Among them, only and .
Upon verification, when , the value of is the smallest.
At this time, .