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 Solvers32
Suggested Problems
-
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
2037 Solvers
-
Matlab Basics - Convert a row vector to a column vector
677 Solvers
-
6303 Solvers
-
Make an identity matrix whose diagonal elements are 1:n
123 Solvers
-
Find Air Temperature from Cricket Stridulation Rate
982 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!