This problem has been giving me a headache for days. My teacher has taught us the plug-and-chug method of working these problems out and eventually finding a closed form. However the " - Hᵥ₋₁ " is really throwing me off. My Plug and chug comes out like this:
H₀ = 1 ; H₁ = 2¹ - 1 = 1 ; H₂ = 2² - (2¹ - 1) = 2² - 2¹ + 1 = 3 ; H₃ = 2³ - (2² - 2¹ + 1) = 2³ - 2² + 2¹ - 1 = 5 ......
I've worked out and been staring at this equation for hours: Hᵥ = 2ᵛ - 2^(v-1) + 2^(v-2) - 2^(v-3) + ... + ((-1)^(v-1))2 + (-1)ᵛ
I know the formula that 1 + r + r² + r³ + ... + rᵛ = (r^(v+1) - 1)/(r - 1) and I've tried to manipulate it to fit my problem but I just cannot figure it out. Please someone help. Anything is appreciated.
$H_n+H_{n-1}=2^n$ thus $(-1)^nH_n-(-1)^{n-1}H_{n-1}=(-1)^n2^n$. Suming this gives $$ \begin{aligned} H_n&=(-1)^n\left(H_0+\sum_{k=1}^n (-2)^k\right) \\&=(-1)^n\left(H_0-1+\frac{(-2)^{n+1}-1}{(-2)-1}\right)\\ &=(-1)^n\left(H_0-1+\frac{1}{3}(1-(-2)^{n+1})\right) \\&=\frac{1}{3}\left(2^{n+1}+(-1)^n\right) \end{aligned}$$ since $H_0=1$