MathDB
The Quintessential Quadruplets

Source: AIME I #13

February 9, 2022
AMCAIME

Problem Statement

Let SS be the set of all rational numbers that can be expressed as a repeating decimal in the form 0.abcd,0.\overline{abcd}, where at least one of the digits a,b,c,a, b, c, or dd is nonzero. Let NN be the number of distinct numerators when numbers in SS are written as fractions in lowest terms. For example, both 44 and 410410 are counted among the distinct numerators for numbers in SS because 0.3636=4110.\overline{3636} = \frac{4}{11} and 0.1230=4103333.0.\overline{1230} = \frac{410}{3333}. Find the remainder when NN is divided by 1000.1000.