Maths Olympiad Prep

Library / /37 of 39

Geometry Difficulty 6.9 National olympiad Prove it Ireland

Consider a rectangular billiards table aa meters wide and bb meters long with pockets at its corners, where aa and bb are both positive integers. A ball is placed at the lower left corner of the table and shot at a 4545 degree angle. It travels without friction until it lands in one of the pockets. Every time it hits an edge of the table the angle of reflection is equal to the angle of incidence. How many ordered pairs of integers (a,b)(a, b) are there with 1ba20091 \le b \le a \le 2009 such that on a aa by bb table, the ball eventually lands in the upper left pocket?

Solution

Following the hint, we observe that the ball lands in a pocket as soon as the line segment reaches a point (c,c)(c, c) where cc is divisible by both aa and bb; clearly cc is the least common multiple of aa and bb. The ball touches a vertical rail cc times and a horizontal rail cc times. If cc is even/odd, the ball lands in a pocket on the left/right side of the table, and if cc is even/odd, the ball lands in a pocket on the lower/upper side of the table. Hence the ball lands in the upper left pocket exactly when cc is even and cc is odd.

Figure 1

Write a=2jaa = 2^j a' and b=2kbb = 2^k b', where aa' and bb' are odd. Then c=2max(j,k)lcm(a,b)c = 2^{\max(j,k)} \operatorname{lcm}(a', b'). Since lcm(a,b)\operatorname{lcm}(a', b') is odd, cc is even and cc is odd precisely when j<kj < k.

If aa is odd, then the ball lands in the upper left pocket whenever bb is even; there are a12\frac{a-1}{2} such allowed values of bb. If aa is divisible by 22 but not by 44, then the ball lands in the upper left pocket whenever bb is divisible by 44; there are a24\frac{a-2}{4} such allowed values of bb, and so forth.

Fix an integer NN and count the ordered pairs (a,b)(a, b) with 1baN1 \le b \le a \le N for which the ball lands in the upper left pocket. In the calculation we use C(k,2)=(k2)=0+1+2++(k2)+(k1)C(k, 2) = \binom{k}{2} = 0 + 1 + 2 + \dots + (k-2) + (k-1).

When a=1,3,5,7,a = 1, 3, 5, 7, \dots, then there are 0,1,2,3,0, 1, 2, 3, \dots allowed values of bb; summing over all such aa gives us C([N+12],2)C\left(\left[\frac{N+1}{2}\right], 2\right) total ordered pairs. When a=2,6,10,14,a = 2, 6, 10, 14, \dots, there are 0,1,2,3,0, 1, 2, 3, \dots allowed values of bb; summing over all such aa gives us C([N+24],2)C\left(\left[\frac{N+2}{4}\right], 2\right) total ordered pairs, and so forth. For N=2009N = 2009, there are a total of C(1005,2)+C(502,2)+C(251,2)+C(126,2)+C(63,2)+C(31,2)+C(16,2)+C(8,2)+C(4,2)+C(2,2)=672,084C(1005, 2) + C(502, 2) + C(251, 2) + C(126, 2) + C(63, 2) + C(31, 2) + C(16, 2) + C(8, 2) + C(4, 2) + C(2, 2) = 672,084 allowed ordered pairs, so this is our answer.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.