## 48. Sequence of Numbers

To write the sequence of numbers from 1 to $n$, it took 2893 digits. What is the number $n$?
48. To write the first nine single-digit numbers, it is necessary

$$
9 \cdot 1=9 \text{ digits. }
$$

To write the next 90 two-digit numbers, 180 digits are required, and to write the next 900 three-digit numbers, 2700 digits are required.

In total, we get 2889 digits. This is four digits less than the number of digits needed to write all numbers from one to $n$. Therefore, $n$ coincides with the first four-digit number, i.e., with the number 1000.