There is this function defined as;
$$f(x) = 10^x + 10^{x-1} + ...+10^0 $$
Which simply gives the 111.. kind of number, given the length x. What I need to do is a way to formulize this function, find the result value with an algebraic expression. Is this achievable ?
Given function is a geometric summation with first term $1$ and ratio $10$. Thus $$ f(x)=\sum_{n=0}^x 10^n = \frac{10^{x+1}-1}{10-1}=\frac{10^{x+1}-1}{9} $$