2022 SSMO Team Round Problems/Problem 13

Problem

In regular hexagon $ABCDEF$ with side length 1, an electron starts at point $A$. When the electron hits an edge, it reflects off of it, with the angle of reflection equal to the angle of incidence. The electron first travels in a straight line to a point on edge $CD$. The electron bounces off of a total of $5$ edges before hitting a vertex. The electron stops and its total distance traveled is measured. If the shortest possible distance the electron could have traveled can be expressed as $\sqrt{m}$, find $m$.

Solution