How do I write a recursive formula for: $$a_n = \left(\frac12\right)^n+2n−1$$ so we were taught to expand the recursion and the multiply all together. So is the answer:
$$a_1=\frac32,\quad a_n=a_{n-1}+\frac52$$
How do you show the expanding and multiplying?
You have $a_1=\dfrac{1}{2} + 2 - 1=\dfrac{3}{2}$
And for all $n \geq 0$, $a_{n+1}=\dfrac{1}{2}(n+1)+2(n+1)-1 = \dfrac{1}{2}n + \dfrac{1}{2} +2n+1 = \left(\dfrac{1}{2}n + 2n - 1 \right) + 2 + \dfrac{1}{2} = a_n + \dfrac{5}{2}$
Then for $n \geq 1$, $a_n=a_{n-1}+\dfrac{5}{2}$