You initially have 100 of each digit from 0 to 9. This means you have 1000 digits in total. This count for each digit is shown in the table below.
| Digit | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|---|---|---|---|---|---|---|---|---|---|---|
| # Remaining | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 |
Now start counting by ones, from 1. Each time you say a number you must remove the digits required to make the number from your stockpile of digits. For example, after you have counted from 1 to 13, the above table now looks like:
| Digit | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|---|---|---|---|---|---|---|---|---|---|---|
| # Remaining | 99 | 94 | 98 | 98 | 99 | 99 | 99 | 99 | 99 | 99 |
What is the largest number you can count to without running out of the digits needed to form the number?