Find collatz series next number - MATLAB Cody - MATLAB Central

Problem 58558. Find collatz series next number

Difficulty:Rate
For given x,
if x is even, output is (x/2)
if x is odd, output is (3x+1)

Solution Stats

77.27% Correct | 22.73% Incorrect
Last Solution submitted on Dec 17, 2024

Problem Comments

Solution Comments

Show comments
Who Deserves Your Praise? Discover the New Contribution Widget!
...
We are excited to announce another update to our Discussions area: the...

Problem Recent Solvers31

Suggested Problems

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!
Go to top of page