Problem 47209. Find Logic 1
Make correct function by Finding logic
logic(1) = 2
logic(2) = 3
logic(3) = 5
logic(4) = 9
Make a function logic(x) which will return value equal to logic(x)
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers328
Suggested Problems
-
Find the longest sequence of 1's in a binary sequence.
5911 Solvers
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1692 Solvers
-
Number of 1s in a binary string
8272 Solvers
-
670 Solvers
-
330 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!