1996 AIME Problem 15

In parallelogram A B C D, let O be the intersection of diagonals \overline{A C} and \overline{B D}. Angles C A B and D B C are each twice as large as angle D B A, and angle A C B is r times as large as angle A O B. Find the greatest integer that does not exceed 1000 r.