sum 10^i * (n - i) from i =0 to n-1