Collatz Conjecture

Test the Collatz Conjecture (a.k.a 3x+1 conjecture)

Ahora está siguiendo esta publicación

The conjecture can be summarized as follows. Take any positive integer n. If n is even, divide it by 2 to get n / 2. If n is odd, multiply it by 3 and add 1 to obtain 3n + 1. Repeat the process (which has been called "Half Or Triple Plus One", or HOTPO) indefinitely. The conjecture is that no matter what number you start with, you will always eventually reach 1.

Citar como

Reza Ahmadzadeh (2026). Collatz Conjecture (https://la.mathworks.com/matlabcentral/fileexchange/58606-collatz-conjecture), MATLAB Central File Exchange. Recuperado .

Categorías

Más información sobre Biomedical Imaging en Help Center y MATLAB Answers.

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.0