Let be an isosceles triangle with and . Two circles centered at and each have radius , and the line through the midpoint of perpendicular to intersects the two circles in four different points. If the greatest possible distance between any two of those four points can be expressed as for positive integers , , , and with gcd and and each not divisible by the square of any prime, find .
Solution
1. **Identify the coordinates of points and :**
- Since is isosceles with and , we can place and symmetrically about the y-axis.
- Let and .
2. **Find the coordinates of point :**
- Since , we use the distance formula:
- Solving these equations, we find .
3. **Determine the midpoint of :**
- The midpoint is:
4. **Find the equation of the line through perpendicular to :**
- The slope of is:
- The slope of the perpendicular line is:
- The equation of the line through is:
5. **Find the points of intersection of this line with the circles centered at and :**
- The equation of the circle centered at with radius 2 is:
- Substituting into the circle's equation:
- Solving this quadratic equation for , we find the x-coordinates of the intersection points. Similarly, we solve for the circle centered at .
6. Calculate the greatest possible distance between any two of the four points:
- The points of intersection are symmetric about the y-axis. The greatest distance will be between the points on opposite sides of the circles.
- Using the distance formula, we find the distance between the farthest points.
7. **Express the distance in the form :**
- After solving, we find the distance to be:
8. **Sum the values of and :**
- Here, , , , and .
- Therefore, .
The final answer is .