Skip to main content

1997 AIME Problem 5

Problem 5 of 15EasierCombinatoricsArithmetic

The number rr can be expressed as a four-place decimal 0.abcd,0.abcd, where a,a, b,b, c,c, and dd represent digits, any of which could be zero. It is desired to approximate rr by a fraction whose numerator is 11 or 22 and whose denominator is an integer. The closest such fraction to rr is 27.\frac{2}{7}. What is the number of possible values for r?r?

Your answer

Integer from 0 to 999
Show solution

Solution

Among fractions with numerator 11 or 2,2, the closest neighbors of 27≈0.2857\frac{2}{7} \approx 0.2857 are 14=0.25\frac{1}{4} = 0.25 below (note 28=14\frac{2}{8} = \frac{1}{4}) and 13≈0.3333\frac{1}{3} \approx 0.3333 above (note 26=13\frac{2}{6} = \frac{1}{3}); no other candidate lies between them. So 27\frac{2}{7} is the unique closest fraction to rr exactly when rr is closer to 27\frac{2}{7} than to both 14\frac{1}{4} and 13,\frac{1}{3}, i.e. when rr lies strictly between the midpoints 12(14+27)=1556=0.26785… \begin{aligned} \frac{1}{2}\left(\frac{1}{4} + \frac{2}{7}\right) &= \frac{15}{56} \\ &= 0.26785\ldots \end{aligned} and 12(27+13)=1342=0.30952…. \begin{aligned} \frac{1}{2}\left(\frac{2}{7} + \frac{1}{3}\right) &= \frac{13}{42} \\ &= 0.30952\ldots. \end{aligned} The four-place decimals in that interval are 0.2679,0.2680,…,0.3095,0.2679, 0.2680, \ldots, 0.3095, and there are 3095−2679+1=4173095 - 2679 + 1 = 417 of them.
AoPS wiki

Tagged: fraction · decimal · counting integers in a range

More practice