Skip to main content

2004 AMC 12B Problem 25

Problem 25 of 25HarderNumber TheoryProblem-Solving Techniques

Given that 220042^{2004} is a 604604-digit number whose first digit is 1,1, how many elements of the set S={20,21,22,…,22003}S = \{2^0, 2^1, 2^2, \ldots, 2^{2003}\} have a first digit of 4?4?

Answer choices

Show solution

Solution

The smallest power of 22 with any given digit-count lies between 10k10^k and 2⋅10k,2\cdot10^k, so it has leading digit 1.1. Because 220042^{2004} is a 604604-digit number beginning with 1,1, it is the first 604604-digit power. Thus the powers in SS contain exactly one leading-11 number for each digit-count from 11 through 603,603, or 603603 in all. After each leading-11 power, the next power leads with 22 or 3,3, and the following power leads with 4,5,6,4, 5, 6, or 7.7. Hence 603603 elements lead with 22 or 3,3, another 603603 lead with 44 through 7,7, and the remaining 2004−3(603)=1952004 - 3(603) = 195 lead with 88 or 9.9. Finally, halving a power that leads with 88 or 99 produces the preceding power with leading digit 4,4, and doubling any leading-44 power reverses this. This is a bijection, so there are 195195 elements with first digit 4.4. Thus, the correct answer is B.
AoPS wiki

Tagged: digits · pattern recognition

More practice