Let be a positive integer greater than 4 such that the decimal representation of ends in zeros and the decimal representation of ends in zeros. Let denote the sum of the four least possible values of . What is the sum of the digits of ?
- A)
- B)
- C)
- D)
- E)
Answer
B
Key insight
Trailing zeros count factors of 5; tripling needs (2n)! to gain an extra factor from 25 that n! lacks, first at n = 8, 9, 13, 14.
Solution
Factorials have far more factors of than , so the number of trailing zeros of is the number of factors of :
We need with .
Roughly, , so tripling only happens when gains extra fives from multiples of that lacks. For , , while . Tabulate by the block of :
- : , . No.
- : , . Yes.
- : , . No.
- : , . Yes.
Four values found: , and they are the least since we checked every in order. Hence
whose digit sum is .
The answer is .
Why this works
Trailing zeros are a question about the prime only, so Legendre's formula is the whole tool. The condition is unusual because doubling normally doubles the fives; the slack comes from before , which localizes the solutions to just below multiples of . A short table is faster than trying to solve the floor equation algebraically.
The trap
Counting factors of 2 or of 10 instead of 5, or forgetting the extra contribution of 25 in (2n)! so that no n seems to work.
Common mistakes
- Counting factors of 2 or of 10 instead of 5, or forgetting the extra contribution of 25 in (2n)! so that no n seems to work.
- Reporting or the count of solutions instead of the digit sum, or including or smaller despite the condition .
Techniques
Bound the quantity above/below or estimate to pin it down · Organized listing / direct enumeration