Project euler
Project Euler #2: Even Fibonacci NumbersSumming even Fibonacci numbers under 4 million — and finding the elegant closed pattern.
Tag
2 posts
Summing even Fibonacci numbers under 4 million — and finding the elegant closed pattern.
A clean O(1) solution using arithmetic series and inclusion-exclusion.