2022 AIME I Problem 13
Problem 13 of 15HarderNumber TheoryArithmeticProblem-Solving Techniques
Let be the set of all rational numbers that can be expressed as a repeating decimal in the form where at least one of the digits or is nonzero. Let be the number of distinct numerators obtained when numbers in are written as fractions in lowest terms. For example, both and are counted among the distinct numerators for numbers in because and Find the remainder when is divided by
Your answer
Integer from 0 to 999
Show solution
Solution
Every element of equals for some where In lowest terms this is where divides and conversely any such arises from So counts the integers that are at most, and coprime to, some divisor of
Classify by which of the primes or divide it, always using the largest divisor coprime to If take there are such If only divides take multiples of up to avoiding and number If only divides take that gives If only divides then admits none. If is divisible by but not by take the values and give more, and any divisible by or would need which is impossible.
Therefore and the remainder modulo is
Tagged: repeating decimal · Euler’s Totient Function · casework