Problem:
Let Snβ be the sum of the reciprocals of the nonzero digits of the integers from 1 to 10n, inclusive. Find the smallest positive integer n for which Snβ is an integer.
Solution:
Each of the 10n integers from 0 to 10nβ1, inclusive, can be written as an n-digit string, using leading 0's as necessary. Imagine these strings written one beneath the other to form a table of digits with n columns and 10n rows. Each column contains an equal number of digits of each type, so there are (1/10)β
10n digits of each type in each column, and there are (n/10)β
10n=nβ
10nβ1 digits of each type in the table. Therefore
Snβ=1+(11β+21β+31β+41β+51β+61β+71β+81β+91β)nβ
10nβ1
The sum Snβ is not an integer when n=1,2, or 3, and when nβ₯4,
(11β+21β+41β+51β+81β)nβ
10nβ1 and (31β+61β)nβ
10nβ1=21βnβ
10nβ1
are integers. Thus Snβ is an integer when
(71β+91β)nβ
10nβ1=6316nββ
10nβ1
is an integer. Because 16β
10nβ1 and 63 are relatively prime, the smallest value of n for which Snβ is an integer is 63β.
The problems on this page are the property of the MAA's American Mathematics Competitions