Collatz sequence

In the collatz sequence, if the maximum of a certain subset is taken (e.g. for every 10 terms), those maxima too show a similar pattern

Ahora está siguiendo esta publicación

The code takes three inputs:
Number of data points to plot, the step, and a bin width.

The step enables us to make the plot look more or less crowded; higher step size does mean higher runtime of code.

Bin width is present essentially to highlight the highest points in the output plot

Citar como

Dhruv Shah (2026). Collatz sequence (https://es.mathworks.com/matlabcentral/fileexchange/78691-collatz-sequence), MATLAB Central File Exchange. Recuperado .

Información general

Compatibilidad con la versión de MATLAB

  • Compatible con cualquier versión

Compatibilidad con las plataformas

  • Windows
  • macOS
  • Linux
Versión Publicado Notas de la versión Action
1.0.0