According to a message sent by extraterrestrial creatures who are millions of years ahead of us in development, the height of the highest two places of their planet, measured from the sea level, is , whereas the lowest point on mainland has height (where ). The radius of the planet (i.e., the distance of the sea level from the centre of the planet) is . Express the largest enabled by these conditions distance between two points on this planet, one of which can be visible from the other one.
Solution

Fig. 9
If the distance is maximal, the line connecting these points must be a tangent of the planet, otherwise one could increase the distance by pushing the points along the surface of the planet farther away. Let the centre be ; let the two points under consideration be and with the tangent point between them (Fig. 9). Denote for . As the tangent line is perpendicular to the radius drawn to the tangent point, and are right triangles with hypothenuses and , respectively. Hence
The value of this expression is maximal if and are as large as possible and is as small as possible, i.e., and . Substituting these values gives the desired distance , or equivalently, .
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.