A Computational Investigation of the Collatz Conjecture
The Collatz Conjecture is a famous mathematical issue that despite being simple to define is not solved for many years. In this project, I investigated the behaviour of Collatz sequences by using a Python program which looked at all the positive numbers from 1 to 10000 in order to find out how long it took to reach 1 and what the highest number in each sequence is. The data gets us to the conclusion that the behaviour of a sequence is not only dependent on its initial number. For example, the number 6171 takes the longest time to reach 1, 261 steps, while 9663 is the number with the highest number; 27114424. There is also a weak connection between the starting number and the time taken to arrive to 1 as the correlation is equal to 0.2054. Although this experiment does not prove the validity of the Collatz conjecture, it provides us with a nice computational way of studying its behaviour and finding new interesting trends.
Authors
- Kritagya (ORCID: https://orcid.org/0009-0005-3498-1614)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-08-28
- DOI
- https://doi.org/10.5281/zenodo.22135272
- Primary Topic
- Benford’s Law and Fraud Detection
- Type
- preprint