The first two Fibonacci numbers (\(f_1\) and \(f_2\)) are both 1, while \(f_n = f_{n-1} + f_{n-2}\) for \(n \ge 3\). The first twelve terms are:
The sum of the first \(n\) Fibonacci numbers are shown below:
We are trying to find a formula for the sum of the first \(n\) Fibonacci numbers:
Since \(f_n = f_{n-1} + f_{n-2}\), we can rewrite this as \(f_{n+2} = f_{n+1} + f_n\), or \(f_n = f_{n+2} - f_{n+1}\). This means:
Expanding:
Most of the terms cancel out:
This shows that the sum of the first \(n\) Fibonacci numbers is just the value of \(f_{n+2} - f_2\), or \(f_{n+2} - 1\).
If the first two Fibonacci numbers were \(f_1=7\) and \(f_2=4\), then the rest of the terms would be 11, 15, 26, 41, 67, 108, 175, 283, ..., and the formula for the sum would be \([f_{n+2} - 4]\):