Problem 2423. Integer Sequence - II : New Fibonacci
Solution Stats
Problem Comments
-
11 Comments
@Brandon It's not the Fibonacci sequence, it's a sequence _based_ thereon. Please feel free to take a look at other players' correct solutions to see what the intended solution was.
Maybe I'm missing something or maybe the problem statement got corrupted somehow, but I have no idea what the problem is even asking for: "Crack [whatever that means] the following integer sequence." End-of-problem-statement. Even after looking at the solutions (having to hard code the answers to do so), it's unclear what you were looking for. As written, it seems you were asking for a function that was a simple regurgitation of the "given" sequence terms in the test cases.
@Wayne The problem description is indeed terse... the values of the sequence are given in the test cases, and you're supposed to find out the mathematical rule that was used to generate them.
For the actual rule, see e.g. solution 1879955.
Solution Comments
Show commentsProblem Recent Solvers565
Suggested Problems
-
640 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
11927 Solvers
-
541 Solvers
-
Reverse the elements of an array
1039 Solvers
-
Find the next Fibonacci number
721 Solvers
More from this Author44
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!