Make a function by finding logic from this problem
logic(1) = 2
logic(2) = 5
logic(3) = 10
logic(4) = 17
If you got the logic Make a function logic(x) which will return value equivalent to 'x' th term.
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers78
Suggested Problems
-
Return the 3n+1 sequence for n
8491 Solvers
-
The Hitchhiker's Guide to MATLAB
3406 Solvers
-
511 Solvers
-
Split a string into chunks of specified length
2058 Solvers
-
Find out sum and carry of Binary adder
1699 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!