MathLabs

Problem 4

Let ABCABC be an equilateral triangle. From vertex AA we draw a ray toward the interior of the triangle so that it reaches one of the sides. When the ray reaches a side it bounces off following the law of reflection, that is, if it arrives with directed angle θ\theta it leaves with directed angle 180∘−θ180^\circ-\theta. After nn bounces the ray returns to AA without ever landing on either of the other two vertices. Find all possible values of nn.
Step 7 of 7: Rule out n=5 and n=17
n=5,17: only pairs are (2,2),(2,8),(5,5), none coprimen=5,17:\ \text{only pairs are}\ (2,2),(2,8),(5,5),\ \text{none coprime}
Detailed analysis

For n=5n=5 and n=17n=17 (both ≡5(mod12)\equiv5\pmod{12}, below the threshold n≥29n\ge29 of step 6), a direct check of all pairs (a,b)(a,b) with a≡b(mod3)a\equiv b\pmod3 and 2(a+b)−3∈{5,17}2(a+b)-3\in\{5,17\} shows only (2,2)(2,2), (2,8)(2,8), and (5,5)(5,5) (up to swapping a,ba,b), none of which is coprime. So n=5n=5 and n=17n=17 are not achievable, while every other n≡1,5(mod6)n\equiv1,5\pmod6 is realized by step 6. Hence the possible values of nn are exactly the integers with n≡1(mod6)n\equiv1\pmod6 or n≡5(mod6)n\equiv5\pmod6, excluding n=5n=5 and n=17n=17.