I have following expression: $\left\lfloor\frac{n}{10}\right\rfloor+\left\lfloor\frac{n}{10^2}\right\rfloor+\left\lfloor\frac{n}{10^3}\right\rfloor+\ldots+\left\lfloor\frac{n}{10^{\lfloor\log_{10} n\rfloor}}\right\rfloor$ where $n$ is a positive integer, greater than $0$
Can this expressoin be somehow simplified? If yes - how?
Thank you
n, which will also take logarithmic number of mathematical operations and in this sense the complexity of above two expressions are the same. I should have mentioned this in my question but i forgot: Could there be a way of simplification, that will also reduce the number of required mathematical oparations? – blindProgrammer Jun 18 '18 at 05:47