2009 AMC 10A Problem 25
For , let , where there are zeros between the and the . Let be the number of factors of in the prime factorization of . What is the maximum value of ?
Show solution without answering
Key insight
I_k is 10 to the power k+2, plus 64. Pull out the smaller power of 2 and an odd number remains, except at the tie k = 4.
Solution
1. Write out a few: , , . In general, is followed by more digits, so
2. Both parts have factors of . Pull out as many s as both parts share and see whether what is left is odd.
3. Small (). Here is less than . Pull out :
Inside the bracket: odd plus even is odd. So , which is .
4. Large (). Here is more than . Pull out :
Inside: even plus is odd. So .
5. The tie, . Both parts have exactly :
Now the bracket is odd plus odd, which is even. , and is odd. So and .
6. The largest value is .
The answer is .
Why this works
When you add two numbers with different numbers of factors of , the sum has the smaller number of s. Only when the counts are equal can the sum pick up extra s, because odd plus odd is even. So always check the case where the two counts tie; that is where the maximum hides.
Alternative approach
Divide by as long as you can:
-
-
-
-
-
The value at stands out, and step 4 above shows stays at for all larger .
Concise solution
A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.
The number has digits, so
Compare the exponents and .
Case (): factor out :
The bracket is odd plus even, hence odd, so .
Case (): factor out :
The bracket is even plus one, hence odd, so .
Case : the powers tie, and
Since is odd, .
The maximum is , attained only at .
The answer is .
Review in the AoPS books
- Introduction to Number Theory, Chapter 1: Integers: The Basics (§1.4, §1.5)
- Introduction to Counting & Probability, Chapter 2: Basic Counting Techniques (§2.2)
- Introduction to Number Theory, Chapter 5: Divisor Problems (§5.2, §5.3)
- Introduction to Algebra, Chapter 20: Special Functions (§20.3)
Similar problems
Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.