did you mean n=4 and not d=4?? ;-)
it seems that the test code is broken n!=d
I fixed the test suite so that n is used instead of d.
Additional test cases have been added.
Return the 3n+1 sequence for n
6208 Solvers
Which values occur exactly three times?
3835 Solvers
1609 Solvers
284 Solvers
Find out value of sine given by degree.
235 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!