返回题库

AIME 2006 II · 第 14 题

AIME 2006 II — Problem 14

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

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

解析

Solution

Let K=i=191iK = \sum_{i=1}^{9}{\frac{1}{i}}. Examining the terms in S1S_1, we see that S1=K+1S_1 = K + 1 since each digit nn appears once and 1 appears an extra time. Now consider writing out S2S_2. Each term of KK will appear 10 times in the units place and 10 times in the tens place (plus one extra 1 will appear), so S2=20K+1S_2 = 20K + 1.

In general, we will have that

Sn=(n10n1)K+1S_n = (n10^{n-1})K + 1

because each digit will appear 10n110^{n - 1} times in each place in the numbers 1,2,,10n11, 2, \ldots, 10^{n} - 1, and there are nn total places.

The denominator of KK is D=233257D = 2^3\cdot 3^2\cdot 5\cdot 7. For SnS_n to be an integer, n10n1n10^{n-1} must be divisible by DD. Since 10n110^{n-1} only contains the factors 22 and 55 (but will contain enough of them when n3n \geq 3), we must choose nn to be divisible by 3273^2\cdot 7. Since we're looking for the smallest such nn, the answer is 063\boxed{063}.

Solution 2 (easier approach but nearly same logic)

Consider n2n \ge 2, since clearly n=1n = 1 doesn't work.

For a certain 1/i1/i to be summed such that it is an integer, we must have ii to be summed continuously mimi times for some integer mm. For example, if we have 1/51/5, we sum 1/51/5 either 5,10,15,5, 10, 15, \dots times to obtain an integer.

Thus, every digit ii must be 1,2,3,,91, 2, 3, \dots, 9. It is known that every digit between every period 10k10^k appears the same number of times. For example, for the first 100100 numbers (excluding 00 and 100100), every digit from 191 \text{--} 9 appears the same number of times.

If we can find an algorithm that calculates the number of times a digit appears between 11 and 10n10^n, and extend that for all values of nn, we could look for a specific value of nn such that every digit 1,2,3,,91, 2, 3, \dots, 9 appears a number of times such that all the reciprocals, when summed, are integers.

To find this algorithm, we construct a pattern. Consider 11001 \text{--} 100. Let's try to find the number of 99's between this interval. There are 99 numbers (excluding from 909990 \text{--} 99), whose units digits is 99. From 909890 \text{--} 98, we have nine 99's. 9999 gives us 22 more 99's, and thus we have a total of 11+9=2011 + 9 = 20 nines. We then consider 110001 \text{--} 1000. Between 11 and 100100, we have 2121 nines. The same applies from 101200,201300,,801899101 \text{--} 200, 201 \text{--} 300, \dots, 801 \text{--} 899. We then have a total of 21×9=18921 \times 9 = 189 nines. Then, we have 11 nine from 900900, so 190190 nines. Then, from 901908,911918,921928,,981988901 \text{--} 908, 911 \text{--} 918, 921 \text{--} 928, \dots, 981 \text{--} 988, we have one 99, contributing 8×9=728 \times 9 = 72 nines. For 1010 additional numbers (909,919,929,,989,990909, 919, 929, \dots, 989, 990), we have 22 nines, contributing 2020 nines. Then, for the final set of 99, we also have 22 nines each, giving 1818 more nines, and the last 999999 has 33 nines, giving a total of 190+72+20+18=300190 + 72 + 20 + 18 = 300 nines.

Now we must find a pattern. For every number 110n1 \text{--} 10^n, we must find the number of 99's. Note that for all numbers less than 10n10^n, we are given that 99 can appear in any one of the positions between the units digit, and the 10n10^n decimal digit. That is nn places. For each 10n10^n places, the numbers appear equally often, and thus there are 10n/10=10n110^n / 10 = 10^{n-1} slots. Our algorithm is then n10n1n \cdot 10^{n-1}.

Note that this formula also works for 2,3,4,,82, 3, 4, \dots, 8. For 11, note that we have to add 11 that appears from 10n10^n, so the formula for 11 is slightly different, being n10n1+1n \cdot 10^{n-1} + 1.

Thus, we now are at the second part. We require nn such that

1(n10n1+1)and2,3,4,5,,9n10n11 \mid (n \cdot 10^{n-1} + 1) \quad \text{and} \quad 2, 3, 4, 5, \dots, 9 \mid n \cdot 10^{n-1} Obviously, the former is always true, as 11 divides everything. Thus, we neglect the former and pay attention to the latter.

The lcm(2,3,4,5,,9)\text{lcm}(2,3,4,5,\dots,9), after some work, is 2520. Thus, 2520n10n12520 \mid n \cdot 10^{n-1}. The prime factorization of 2520 is 2332572^3 \cdot 3^2 \cdot 5 \cdot 7. The prime factorization of 10n110^{n-1} is 2n15n12^{n-1} \cdot 5^{n-1}. To check extraneous, note that for n4n \ge 4, we have that 2n1232^{n-1} \ge 2^3, and the same for 5n15^{n-1} with n2n \ge 2, hence this is solvable. Because 9 and 7 are not factors of 10, we have that 9 and 7 must divide into nn, meaning that 63n63 \mid n. The smallest nn is then right in front of us, or 063\boxed{063}.

~Pinotation