Skip to main content

2006 AIME II Problem 14

Problem 14 of 15HarderAlgebraNumber Theory

Let SnS_n be the sum of the reciprocals of the nonzero digits of the integers from 11 to 10n,10^n, inclusive. Find the smallest positive integer nn for which SnS_n is an integer.

Your answer

Integer from 0 to 999
Show solution

Solution

Write the integers from 00 to 10n−110^n - 1 as nn-digit strings with leading zeros. Each of the nn digit positions takes each digit value equally often, so each nonzero digit appears n⋅10n−1n \cdot 10^{n-1} times. Adding the digit 11 of 10n10^n itself, Sn=1+n⋅10n−1(1+12+⋯+19)=1+71292520 n⋅10n−1. \begin{aligned} S_n &= 1 \\ &\quad {}+ n \\ &\quad {}\cdot 10^{n-1}\small\left(1 + \frac{1}{2} + \cdots + \frac{1}{9}\right) \\ &= 1 + \frac{7129}{2520}\, n \cdot 10^{n-1}. \end{aligned} Since gcd⁡(7129,2520)=1,\gcd(7129, 2520) = 1, the sum is an integer exactly when n⋅10n−1n \cdot 10^{n-1} is divisible by 2520.2520. Now 2520=23⋅32⋅5⋅7,2520 = 2^3 \cdot 3^2 \cdot 5 \cdot 7, and for n≥4n \ge 4 the factor 10n−110^{n-1} supplies 23⋅5,2^3 \cdot 5, leaving the condition that nn be divisible by 6363 (a power of 1010 has no factors of 33 or 77). For n=1,2,3n = 1, 2, 3 the products 1,20,3001, 20, 300 are not multiples of 2520.2520. The smallest solution is therefore n=63.n = 63.
AoPS wiki

Tagged: digits · divisibility · summation

More practice