I'm trying to solve the following recurrence relation with the telescopic method (for any positive integer):
$f(k) =f(k−1) + 2k−1 $
$f(0) = 4$
I started to create and collapse equations but I think that I'm stuck on the last stage:
$f(k) =f(k−1) + 2k−1$
$f(k−1) = f(k−2) + 2k − 3$
$f(k−2) = f(k−3) + 2k−5$
$...$
$f(2) =f(1) + 3$
$f(1) =f(0) + 1$
I know that I can collapse all equations into one equation from the sort of: $f(n) = f(0) + ...$ But I'm not sure how to proceed onto the last stage.
Thanks!
From $f(k)=f(k-1)+k^2-(k-1)^2$ you can prove by induction $f(k)-k^2=f(0)-0^2=4$, or write the telescoping series$$f(k)=f(0)+\sum_{j=1}^k(f(j)-f(j-1))=f(0)+\sum_{j=1}^k(j^2-(j-1)^2)=f(0)+k^2=k^2+4.$$