Guess the logic!
logic(1) = 1
logic(11) = 2
logic(15) = 6
logic(22) = 4
Make a function logic(x) which will return value according to logic in problem
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers239
Suggested Problems
-
Return the 3n+1 sequence for n
8530 Solvers
-
3094 Solvers
-
792 Solvers
-
400 Solvers
-
1020 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!