Skip to main content

1990 AIME Problem 13

Problem 13 of 15HarderNumber TheoryArithmeticProblem-Solving Techniques

Let TT be the set of powers 9k,9^k, where kk is an integer with 0≤k≤4000.0\leq k\leq4000. Given that 940009^{4000} has 38173817 digits and that its first (leftmost) digit is 9,9, how many elements of TT have 99 as their leftmost digit?

Your answer

Integer from 0 to 999
Show solution

Solution

For k≥1,k\geq1, the number 9k9^k begins with 99 exactly when it has the same number of digits as 9k−1.9^{k-1}. Indeed, if 9k−19^{k-1} has dd digits and multiplication by 99 creates no new digit, then 9k≥9⋅10d−1,9^k\geq9\cdot10^{d-1}, so its leading digit is 9.9. If multiplication does create a new digit, then 9k<9⋅10d,9^k\lt9\cdot10^d, so its leading digit is at most 8.8. Starting from the one-digit number 90,9^0, the digit count reaches 38173817 after 40004000 multiplications. Thus it increases on 38163816 steps and stays unchanged on 4000−3816=1844000-3816=184 steps. Since 90=19^0=1 does not begin with 9,9, exactly 184184 elements of TT do.
AoPS wiki

Tagged: digits · exponent · invariant

More practice