The national debt of the United States is on track to reach dollars by 2033. How many digits does this number of dollars have when written as a numeral in base 5? (The approximation of as 0.7 is sufficient for this problem.)
, 2024
Pick one
Solution
The number of digits required to write the positive integer in base is , rounded down to an integer. Therefore the required value is the floor of
which is 20.
It is possible to convert a positive integer to base 5 by repeatedly dividing by 5 and recording the remainders. This list of remainders in reverse order is the required numeral. Here . Performing this calculation gives a remainder of 0 for the first 14 iterations. The following table gives the remaining 6 iterations:
| dividend | quotient | remainder |
|---|---|---|
| 8192 | 1638 | 2 |
| 1638 | 327 | 3 |
| 327 | 65 | 2 |
| 65 | 13 | 0 |
| 13 | 2 | 3 |
| 2 | 0 | 2 |
Therefore , a numeral with 20 digits.
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.