第 569 题:(2006 AIME II, 14)
Let $S_n$ be the sum of the reciprocals of the non-zero digits of the integers from $1$ to $10^n$ inclusive. Find the smallest positive integer $n$ for which $S_n$ is an integer.
- Among $0,\dots,10^n-1$ written with $n$ digits (leading zeros allowed), each digit $1,\dots,9$ appears $n\cdot10^{n-1}$ times; $10^n$ adds $1$.
- So $S_n=n\cdot10^{n-1}H_9+1$, where $H_9=1+\frac12+\cdots+\frac19=\frac{7129}{2520}$ and $2520=2^3\cdot3^2\cdot5\cdot7$.
- Since $7129$ is coprime to $2520$, we need $2520\mid n\cdot10^{n-1}$. The factor $3^2\cdot7=63$ must divide $n$, so $n\ge63$, and then $10^{n-1}$ supplies $2^3$ and $5$ (true for all $n\ge4$).
- The least is $n=63$. The answer is $\boxed{063}$.
Let $S_n$ be the sum of the reciprocals of the non-zero digits of the base-$8$ representations of the integers from $1$ to $8^n$ inclusive. Find the smallest positive integer $n$ for which $S_n$ is an integer.