Problem 2187. Generalized Fibonacci
Solution Stats
Problem Comments
-
1 Comment
It is true that Fib_gen(N) = k(1) * Fib(N) + k(2) * Fib(N+1) for some k, but the problem is actually requesting Fib_gen(N) = k(2) * Fib(N) + k(1) * Fib(N-1) for another k. If one is still in doubt, generate the two sequences and look at the expected answer.
Problem Recent Solvers44
Suggested Problems
-
Project Euler: Problem 1, Multiples of 3 and 5
2195 Solvers
-
Project Euler: Problem 6, Natural numbers, squares and sums.
1481 Solvers
-
682 Solvers
-
510 Solvers
-
347 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!