Skip to main content

AMC 12 Mock Exam 9 Problem 15

Problem 15 of 25

Ravi lists every number of the form ab\dfrac ab, where aa and bb are integers with 1≤a<b≤201\le a<b\le20. He writes each number only once, so, for example, 12\frac12 and 510\frac{5}{10} count as the same entry. Then he circles each number on his list whose decimal expansion does not terminate. How many numbers does Ravi circle?

Answer choices

Show solution

Solution

Each number on the list is in (0,1)(0,1) and has a unique lowest-terms form ab\frac ab with b≤20b\le20. For a fixed denominator bb, the numerators are the a<ba<b with gcd⁡(a,b)=1\gcd(a,b)=1, and there are φ(b)\varphi(b) of them. For b=2,3,…,20b=2,3,\dots,20 the values of φ(b)\varphi(b) are 1,2,2,4,2,6,4,6,4,10,4,12,6,8,8,16,6,18,8,1,2,2,4,2,6,4,6,4,10,4,12,6,8,8,16,6,18,8, whose sum is 127127. So the list has 127127 numbers.

A fraction in lowest terms has a terminating decimal exactly when its denominator has no prime factors other than 22 and 55. Here those denominators are b=2,4,5,8,10,16,20b=2,4,5,8,10,16,20, which contribute 1+2+4+4+4+8+8=311+2+4+4+4+8+8=31 terminating numbers. Ravi circles 127−31=96127-31=\boxed{96} numbers.

(Without merging equal fractions there would be (202)=190\binom{20}{2}=190 entries, and 190−31=159190-31=159.)

Tagged: counting reduced fractions with Euler's totient · terminating decimals