Even Fibonacci Numbers
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with and , the first terms will be:
By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.
Solution
The Fibonacci sequence is defined by the recurrence relation:
By observation, we can see that every third term is even. We can use this fact to generate the sequence and sum the even terms.
where is the number of terms to sum.
The term is the largest term and it can not exceed the limit of . We can use this fact to determine the number of terms to sum.
The Binet formula gives a closed form for the Fibonacci sequence:
where and .
Notice that as . Therefore, we can approximate the number of terms to sum as:
By recursion, we note that:
This gives us a recurrence relation for the even terms and using the definition of , we sum over the recurrence relation by setting :
where the first term is simply . In the second and third terms, we can substitute and , respectively, to get:
Thus, we have a closed form for the sum of the even terms:
First, we need to find the largest term that does not exceed . We can use the relation we derived in (1) to find the largest term's Fibonacci index: