IMO 1989 SL 3

Ali Barber, the carpet merchant, has a rectangular piece of

IMO 1989 SL 3

Origin: AUS

Problem

Ali Barber, the carpet merchant, has a rectangular piece of carpet whose dimensions are unknown. Unfortunately, his tape measure is broken and he has no other measuring instruments. However, he finds that if he lays it flat on the floor of either of his storerooms, then each corner of the carpet touches a different wall of that room. He knows that the sides of the carpet are integral numbers of feet and that his two storerooms have the same (unknown) length, but widths of 38 feet and 50 feet respectively. What are the carpet dimensions?

Solution

Let the carpet have width x, length y. Let the length of the storerooms be q. Let y/x = k. Then, as in the previous problem, (kq−50)2+(50k−q)2 = (kq −38)2 + (38k −q)2, i.e.,

kq = 22(k2 + 1). (1) Also, as before, x2 =  kq−50 k2−1 +  50k−q k2−1 , i.e., x2(q2 −1)2 = (k2 + 1)(q2 −1900), (2) which, together with (1), yields x2k2(k2 −1)2 = (k2 + 1)(484k4 −932k2 + 484). Since k is rational, let k = c/d, where c and d are integers with gcd(c, d) =

  1. Then we obtain x2c2(c2 −d2)2 = c2(484c4 −448c2d2 −448d4) + 484d6. We thus have c2 | 484d6, but since (c, d) = 1, we have c2 | 484 ⇒c | 22. Analogously, d | 22; thus k = 1, 2, 11, 22, 1 2, 1 11, 1 22, 2 11, 11 2 . Since reciprocals lead to the same solution, we need only consider k \in 1, 2, 11, 22, 11 , yielding q = 44, 55, 244, 485, 125, respectively. We can test these values by substituting them into (2). Only k = 2 gives us an integer solution, namely x = 25, y = 50.