PROJECT EULER · #0144
Laser Beam Reflections
In laser physics, a "white cell" is a mirror system that acts as a delay line for the laser beam. The beam enters the cell, bounces around on the mirrors, and eventually works its way back out.
The specific white cell we will be considering is an ellipse with the equation
The section corresponding to


The light beam in this problem starts at the point
Each time the laser beam hits the surface of the ellipse, it follows the usual law of reflection "angle of incidence equals angle of reflection." That is, both the incident and reflected beams make the same angle with the normal line at the point of incidence.
In the figure on the left, the red line shows the first two points of contact between the laser beam and the wall of the white cell; the blue line shows the line tangent to the ellipse at the point of incidence of the first bounce.
The slope
The normal line is perpendicular to this tangent line at the point of incidence.
The animation on the right shows the first
How many times does the beam hit the internal surface of the white cell before exiting?
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.