Problem:
Maddalena writes on a sheet all the powers of from to (both ends included). How many of the numbers she has written begin with ?
Problem:
Maddalena writes on a sheet all the powers of from to (both ends included). How many of the numbers she has written begin with ?
Pick one
Solution:
The answer is (D). Let us start with a more general observation. Given a positive integer , consider the smallest power of that in base is written with at least digits. Since is written with at most digits we have , and hence , where the first inequality follows from the hypothesis that is written with at least digits. The inequalities just written mean exactly that the decimal representation of begins with the digit . On the other hand, the next power of , namely , satisfies , and hence its first decimal digit is or . From this it follows immediately that is the unique power of that in base is written with exactly digits and whose first digit is equal to . The same obviously holds for powers of with a single digit: the only one beginning with is precisely . We therefore obtain that for every possible length of the decimal representation there exists one and only one power of whose decimal representation has that length and begins with .
From this it follows that in order to count the desired powers of we only need to understand how many different lengths occur among the numbers written by Maddalena: for each length there is exactly one power of that begins with the digit . Since has a single digit, it is a matter of understanding how many digits has. Observe that , hence , and therefore has at least digits. Let us now show that has exactly digits, that is, that . Simplifying a factor from both sides, the desired inequality becomes . Observe now that and , so that the inequality can further be rewritten in the form
The validity of this inequality can be verified in various ways; one possibility is to observe that , from which
and squaring once more
Continuing in this way we immediately find and hence as desired.
Since the numbers written by Maddalena have lengths varying between and , we obtain that the powers of beginning with written by Maddalena are exactly .