2021 AIME I Problem 10
Problem 10 of 15IntermediateAlgebraNumber TheoryProblem-Solving Techniques
Consider the sequence of positive rational numbers defined by and for if for relatively prime positive integers and then Determine the sum of all positive integers such that the rational number can be written in the form for some positive integer
Your answer
Integer from 0 to 999
Show solution
Solution
Write in lowest terms and let so has the form exactly when One step sends to and then cancels Two facts control everything. First, satisfies so is unchanged by the shift and divided by upon cancellation. Second, since a number divides both and exactly when it divides both and hence and after cancelling, the new difference is
Initially and so works. The next step has so works and From there climbs until shares a factor with at we get (cancel now ); then at (cancel now ); then at (cancel now ). Each cancellation used so returned to at and
Once no further cancellation is possible, so increases forever and never equals again. The valid indices are with sum
Tagged: greatest common divisor · recursion · invariant