I thought of converting this to the $\sum$ notation and then simplifying it further.
On simplifying, it turned out to be a combination of two summation notations.
Here's what I got
$$\sum_{n = 1}^{9} \left[ 10^n + 90 \left( \sum_{a = 0}^{n - 2} 10^a \right) + n \right]$$
(All edits on the summation notation are welcome)
Was this a correct approach to the problem? If yes, how do I simplify it further?
If no, then what is the right approach and why is this not the right approach? Also, in what types of questions is this the right approach?
Thanks
$$20+200+2000+\cdots2000000000-9-8-7-\cdots1=2222222220-45.$$
($45$ is the ninth triangular number.)