Guess Logic!
logic(1) = 120
logic(2) = 60
logic(3) = 180
logic(4) = 45
logic(5) = 225
Make a function logic(x) which will return 'x' th term of sequence
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers396
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
53331 Solvers
-
Return the 3n+1 sequence for n
8509 Solvers
-
991 Solvers
-
755 Solvers
-
605 Solvers
More from this Author40
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Please add more cases to the test suite, or else it is trivial to solve this problem.
Rafael is right and since you made this into a badge problem it is even more essential to fix this