I have a Fibonacci problem ... basically I have to show that:
$$F(n+2) = 1 + \sum_{i=0}^{n} F(i)$$
Using strong induction, I must now show that:
$$F(n+2) = F(n+1) + F(n)$$ $$F(n+2) = (1 + \sum_{i=0}^{n-1} F(i)) + (1 + \sum_{i=0}^{n-2} F(i))$$ $$F(n+2) = 2 + \sum_{i=0}^{n-1} F(i) + \sum_{i=0}^{n-2} F(i)$$
How do I add these two summations to show that they equal the first equation (at the top)?
Please provide the steps with explanation as to what you are doing. Thanks
You’re making it much harder than it really is. In particular, you don’t need strong induction. Your induction hypothesis is that
$$F(n+2)=1+\sum_{k=0}^nF(k)\;.$$
Now add $F(n+1)$ to both sides and simplify each side:
$$F(n+3)=F(n+2)+F(n+1)=1+\sum_{k=0}^nF(k)+F(n+1)=1+\sum_{k=0}^{n+1}F(k)\;.$$
The equality of the leftmost and rightmost quantities in that string is exactly what you needed to prove for your induction step.