Skip to main content

1992 AIME Problem 5

Problem 5 of 15EasierNumber TheoryArithmetic

Let SS be the set of all rational numbers r,r, 0<r<1,0\lt r\lt1, that have a repeating decimal expansion in the form 0.abcabcabc…=0.abc‾,0.abcabcabc\ldots=0.\overline{abc}, where the digits a,a, b,b, and cc are not necessarily distinct. To write the elements of SS as fractions in lowest terms, how many different numerators are required?

Your answer

Integer from 0 to 999
Show solution

Solution

Every element is N999\frac{N}{999} for 1≤N≤998.1\leq N\leq998. Any aa coprime to 999999 occurs as a reduced numerator with denominator 999,999, giving φ(999)=648\varphi(999)=648 values. If aa is divisible by 33 but not 37,37, it can be coprime to a reduced denominator only when that denominator is 37;37; this adds the 1212 multiples of 33 below 37.37. A numerator divisible by 3737 would need a denominator dividing 2727 and larger than it, so no further values occur. Therefore the total is 648+12=660.648+12=660.
AoPS wiki

Tagged: repeating decimal · greatest common divisor · Euler’s Totient Function

More practice