Problem:
In their base 10 representations, the integer a consists of a sequence of 1985 eights and the integer b consists of a sequence of 1985 fives. What is the sum of the digits of the base 10 representation of the integer 9ab?
Answer Choices:
A. 15880
B. 17856
C. 17865
D. 17874
E. 19851
Solution:
First note that since 9ab ends in a zero, the sum of its digits is the same as the sum of the digits in N=9ab/10. Second note that for any integer M represented as a string of k copies of the digit d, M=9dβ(999β¦99)=9dβ(10kβ1). Thus
Nβ=109β(98β(101985β1))(95β(101985β1))=94β(102β
1985β2β
101985+1)=94β((102β
1985β1)β2(101985β1))=94β(102β
1985β1)β98β(101985β1)=PβQβ
where P is the number consisting of a sequence of 2β
1985 fours and Q consists of 1985 eights. Thus N consists of 1984 fours followed by 1 three followed by 1984 fives followed by 1 six. The sum of the digits in N is
1984β
(4+5)+(6+3)=1985β
9=17865
Alternatively, one can replace k=1985 by k=1,2,3 and look for a pattern. When k=1,9ab=360 and the sum of the digits is 9. When k=2,9ab=9.88β
55=43560 and the digit sum is 18. When k=3,9ab= 9β
888β
555=4435560 and the digit sum is 27. It now seems clear (and can be proved by induction) that in general the digit sum is 9k.