Problem 2187. Generalized Fibonacci
Solution Stats
Problem Comments
-
1 Comment
Rafael S.T. Vieira
on 4 Sep 2020
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 Solvers47
Suggested Problems
-
Renaming a field in a structure array
1176 Solvers
-
1166 Solvers
-
The Hitchhiker's Guide to MATLAB
3142 Solvers
-
219 Solvers
-
Find out missing number from a vector of 9 elements
281 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!