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.
Getting the absolute index from a matrix
213 Solvers
Vectorize the digits of an Integer
273 Solvers
222 Solvers
498 Solvers
384 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!