Solution to Project Euler problem 2 in C# | MathBlog
https://www.mathblog.dk/project-euler-problem-2/
Even though the solution is really fast, there are several methods to speed up the calculation. If we look at the Fibonacci sequence: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89 We may notice the pattern that every third number is even starting at F3, so if we can express Fn in terms of Fn-3, Fn-6then we only has to deal with even numbers We start out wit...
Even though the solution is really fast, there are several methods to speed up the calculation. If we look at the Fibonacci sequence: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89 We may notice the pattern that every third number is even starting at F3, so if we can express Fn in terms of Fn-3, Fn-6then we only has to deal with even numbers We start out wit...
DA: 16 PA: 50 MOZ Rank: 88