Project Euler #246: Tangents to an ellipse