Project Euler/246
From charlesreid1
Problem Statement
Tangents to an Ellipse
The ellipse E is defined by the equation x^2/2500 + y^2/1100 = 1.
Given a point P outside the ellipse, the two tangents from P to the ellipse touch E at points T1 and T2.
Let L(P) be the length of the segment of the tangent line from P to T1, plus the length from P to T2.
For how many lattice points P with coordinates (x,y) where -50000 ≤ x,y ≤ 50000 is the distance L(P) an integer?
Flags