For given x,
if x is even, output is (x/2)
if x is odd, output is (3x+1)
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers35
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
2058 Solvers
-
Project Euler: Problem 1, Multiples of 3 and 5
3720 Solvers
-
Number of 1s in a binary string
11448 Solvers
-
529 Solvers
-
462 Solvers
More from this Author4
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!