What different methods of recursion can I use to find the nth term of this recursion? This should be simple but I don't know what I'm missing. Could you demonstrate the method?
$n(0)= 1$, $n(1)= 6$, $n(2)= 24$, $n(3)= 76$, $n(4)= 212$ $...$
$Recurrence: $
$$w_0 = 1$$ $$\forall n \in \mathbb{N}, w_{n+1} = w_n +4 $$ $$ z_0 = w_0$$ $$\forall n \in \mathbb{N}, z_{n+1} = z_n + (w_{n+1}) 2^n$$
$$z_0 = w_0 = 1$$ $$z_1 = z_{0+1} = z_0 + (w_0+_1)2^0 = 1 + ((1+(1)4)2^0 = 6$$ $$z_2 = z_{1+1} = z_1 + (w_1+_1)2^1 = (1 + ((1+(1)4)2^0) + (1+(2)4) 2^1 = 24$$ $$z_3 = z_{2+1} = z_2 + (w_2+_1)2^2 = ((1 + ((1+(1)4)2^0) + (1+(2)4) 2^1) + (1+(3)4) 2^2 = 76 $$ I tried this but it does not seem to match my values.
$$1 + ((1+(1)4)2^0 + (1+(2)4) 2^1..... $$ $$z_n = 1 + ((1+(n-1)4)2^{n-2}) + (1+(n)4) 2^{n-1} $$
Thanks
Quite clearly $w_n=1+4n$. Then $$\begin{align} z_n&=z_0+\sum_{k=1}^n 2^{k-1}w_{k}\\ &=1+\sum_{k=1}^n 2^{k-1}+4\sum_{k=1}^n 2^{k-1}k\\ &=2^n\hphantom{+\sum_{k=1}^n 2^{k-1}}+4\cdot((n-1)\cdot2^n+1)\\ &=(4n-3)\cdot 2^{n}+4\end{align}$$
Indeed, this matches the recursion $$ z_0=(4\cdot 0-3)\cdot 2^0+4=1$$ and $$ z_{n-1}-z_n=(4(n+1)-3)2^{n+1}-(4n-3)2^n=(4n+5)2^n=w_{n+1}2^n$$