Solution (source code)

= Solution

This <geometric series> has first term $1$ and ratio $0.999$, which lies strictly inside the unit <interval>. Therefore
$$
\boxed{\sum_{n=0}^{\infty}(0.999)^n=\frac1{1-0.999}=1000.}
$$
The decimal is treated as the exact value $999/1000$.