Problem:
Let n be a positive integer greater than 4 such that the decimal representation of n! ends in k zeros and the decimal representation of (2n)! ends in 3k zeros. Let s denote the sum of the four least possible values of n. What is the sum of the digits of s?
Answer Choices:
A. 7
B. 8
C. 9
D. 10
E. 11
Solution:
Because there are ample factors of 2, it is enough to count the number of factors of 5. Let f(n) be the number of factors of 5 in positive integers less than or equal to n. For n from 5 to 9,f(n)=1. In order for f(2n) to equal 3,2n must be between 15 and 19, inclusive. Therefore n=8 or n=9. For n from 10 to 14,f(n)=2. In order for f(2n) to equal 6,2n must be between 25 and 29, inclusive. Hence, n=13 or n=14. Thus the four smallest integers n that satisfy the specified condition are 8,9,13, and 14. Their sum is 44 and the sum of the digits of 44 is (B)8β.
OR
In fact there are only 4 possible values of n. By Legendre's Theorem, if n! ends in k zeros and (2n)! ends in kβ² zeros, then
k=β5nββ+β52nββ+β53nββ+β―+β5jnββ,
kβ²=β52nββ+β522nββ+β532nββ+β―+β5j2nββ+β5j+12nββ
where j is the highest power of 5 not exceeding n, and thus the highest power of 5 not exceeding 2n is at most j+1. If x is a real number, then β2xββ€2βxβ+1. So β5i2nβββ€2β5inββ+1 for each 1β€iβ€j+1. Adding these inequalities yields kβ²β€2k+j+1. If nβ₯15, then k>2+jβ1=j+1 and kβ²<3k. For n=13 and n=14,k=2 and kβ²=5+1=6=3k. For nβ€12,k=β5nββ and kβ²=β52nββ; in this case kβ²=3k only for n=8 and n=9. So s=8+9+13+14=44 and the answer is 4+4=(B)8β.
The problems on this page are the property of the MAA's American Mathematics Competitions