If you have this expression,
$$x + x/2 + x/4 + x/8 + \ldots $$, it equates to roughly $2x$, why is this?
Which area of maths is this? To deal with these kind of sums, and getting a result. I am studying Computer science and we get these sequences a lot, but I struggle to evaluate them and make them equal to a smaller version. How can I get better at this?
Thanks in advance.
Rewrite the sum as$$x+\frac 12x+\frac 14x+\frac 18x+\ldots=x\sum\limits_{k\geq0}\left(\frac 12\right)^k$$The inner sum has a closed form. The proof is simple. If we let $S$ denote the result, then$$S=\sum\limits_{k\geq0}r^k=1+r+r^2+\ldots$$$$Sr=\sum\limits_{k\geq0}r^{k+1}=r+r^2+r^3+\ldots$$Subtracting the first equation from the latter gives$$S(1-r)=1\qquad\implies\qquad S=\frac 1{1-r}$$where $|r|<1$ for the series to converge. Therefore$$\begin{align*}x+\frac 12x+\frac 14x+\frac 18x+\ldots=\frac x{1-\frac 12}=2x\end{align*}$$