Problem 56393. Easy Sequences 77: Powers of Fibonacci Numbers
Solution Stats
Problem Comments
-
3 Comments
Test 10 is wrong. I ran your algorithm using java math and obtained:
s=[1021322 1048348 1452207 670027] which is the same figures I obtained using my algorithm. My algorithm passes all the other tests.
Hi David, I have not accounted for Fibonacci of 0 which is 0, which is required in my algorithm. Please try again.
Surprisingly easy once you see a couple of tricks.
Solution Comments
Show commentsProblem Recent Solvers3
Suggested Problems
-
Smallest distance between a point and a rectangle
272 Solvers
-
Count letters occurence in text, specific to words with a given length.
174 Solvers
-
Make a vector of prime numbers
808 Solvers
-
Compute the nth term from the golden sieve
17 Solvers
-
Easy Sequences 1: Find the index of an element
49 Solvers
More from this Author116
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!