taocp

This site has no text of the book. Keep your own copy of TAOCP next to it. See what is checked.

Exercise · Volume 1 · 1.2.8-20

Exercise 1.2.8-20

not stated yet in Lean solution written

RatingM16
MarkersM (mathematical)
KindK3, find a value: compute a number, a set or a closed form from the written solution
SectionSection 1.2.8 of Volume 1. Companion chapter: Fibonacci numbers

The task

Find a closed form of the partial sum ∑k=0nFk\sum_{k=0}^nF_k in terms of one Fibonacci number.

The exact wording is in your copy of the book.

Hints

Open one hint at a time. Try the exercise again after each.

Hint 1

Write FkF_k as a difference of two Fibonacci numbers with larger index.

Hint 2

The sum then collapses.

Solution

Show the solution

The rule Fk+2=Fk+1+FkF_{k+2} = F_{k+1} + F_k gives Fk=Fk+2−Fk+1F_k = F_{k+2} - F_{k+1} for k≥0k \ge 0. Sum over 0≤k≤n0 \le k \le n. The terms telescope:

∑k=0nFk=∑k=0n(Fk+2−Fk+1)=Fn+2−F1=Fn+2−1.\sum_{k=0}^nF_k = \sum_{k=0}^n(F_{k+2} - F_{k+1}) = F_{n+2} - F_1 = F_{n+2} - 1.

Check

For n=6n = 6: 0+1+1+2+3+5+8=200 + 1 + 1 + 2 + 3 + 5 + 8 = 20 and F8−1=21−1=20F_8 - 1 = 21 - 1 = 20. For n=0n = 0 the sum is 0=F2−10 = F_2 - 1.

Remarks

This is the case c=1c = 1 of Exercise 1.2.8-13(b), and the case m=0m = 0 of Exercise 1.2.8-14. The same telescoping gives ∑k=0nF2k+1=F2n+2\sum_{k=0}^{n}F_{2k+1} = F_{2n+2}.

This solution is checked, and a person has not reviewed it yet. The source.

In Lean

not stated yet The exercise is not stated in Lean yet.

The status is computed from the Lean build. The node of the map.

Something is wrong? Report it.