DR.WANG Mathematics中文

2022 AIME I · Question 13

Arithmetic · repeating decimal · Euler’s Totient Function · casework · number-theory · problem-solving

Problem outline

Form all positive repeating decimals 0.abcd‾0.\overline{abcd} with four displayed digits (leading zeros and shorter fundamental periods are allowed). Reduce each to lowest terms. How many distinct numerators occur, modulo 10001000?

Show answer and methods 1 methods

Answer

392

Method 1 Choose the largest allowable denominator

These numbers are j/9999j/9999 for 1≤j≤99991\le j\le9999, and 9999=9⋅11⋅1019999=9\cdot11\cdot101. A numerator kk occurs precisely when k≤Dk\le D, where DD is the largest divisor of 99999999 coprime to kk: then k/Dk/D is already reduced.

If none of 3,11,1013,11,101 divides kk, the count is φ(9999)=6⋅10⋅100=6000\varphi(9999)=6\cdot10\cdot100=6000. If only 33 divides it, D=1111D=1111 and there are 370−33−3=334370-33-3=334 multiples of three excluding multiples of 3333 and 303303. If only 1111 divides it, D=909D=909 and the count is 82−27=5582-27=55.

If both 33 and 1111 divide kk but 101101 does not, D=101D=101 permits 33,66,9933,66,99. If 101101 divides kk, then D≤99<kD\le99<k. In total N=6000+334+55+3=6392N=6000+334+55+3=6392, with remainder 392392.

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)