i have came across a series, i am trying to find its sum knowing the fact that, if it converges and its common ratio ex. r is: -1 < r < 1, then i can use the specified formula $\frac{a}{1-r}$ , which specifically means first term of series over 1 minus common ratio
here is the series $\sum_{n=1}^{\infty}\frac{2n-1}{2^n}$
i manipulated it this way to prove its convergence: $\sum_{n=1}^{\infty}\frac{2n-1}{2^n}=\sum_{n=1}^{\infty}(2n-1)\frac{1}{2^n}=\sum_{n=1}^{\infty}(2n-1)\left(\frac{1}{2}\right)^n$
$\frac{a}{1-r}=\frac{\frac{1}{2}}{1-\frac{1}{2}}=\frac{\frac{1}{2}}{\frac{1}{2}}=1$
using it i get the result 1, which actually should be 3