Including a value where x<=15 and the formula is true (like the x=8; n=2 example in your problem description) will make this solution wrong.
Return the 3n+1 sequence for n
6213 Solvers
548 Solvers
Get the length of a given vector
3736 Solvers
Create a Multiplication table matrix...
285 Solvers
1217 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!