Unfortunately the FFT based solution using a binary expansion of 'n' won't be Cody-optimal :-)
Return the 3n+1 sequence for n
6213 Solvers
354 Solvers
149 Solvers
Generate a string like abbcccddddeeeee
237 Solvers
370 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!