The Collatz Conjecture
I made this after learning about it from one of my favorite English YouTubers.
The Collatz Conjecture is a fairly simple idea. You start with any positive integer, and go from there. If the integer is even, you divide it by two, and if it is odd, you multiply it by three and add one. You keep iterating it over and over like this, and it levels out. I've made it print out the average, highest, and lowest values at the end
Please Enjoy! Any feedback would be greatly appreciated.
PS good morning -.-
The conjecture is actually that it will eventually reach 1 after enough iterations. However, great job! Maybe, next you could try to prove the conjecture (at least experimentally using a program to test every number possible since nobody has actually proven it mathematically before and it is an open problem in mathematics)!
@LizFoster This is a graph of numbers in the Collatz Conjecture (scroll to the right to see more once on the website): https://collatzgraph.amazingmech2418.repl.co/ Notice that there are more flat lines towards the right of it. That means that more numbers have the same values there. For some reason, I'm thinking it might have something to do with the Riemann Zeta Function, but I'm not exactly sure why...
@LizFoster This is what I got if you don't want to actually go to the website.
You have to open it in a new tab since it is very wide. Or just go to this link: https://storage.googleapis.com/replit/images/1586883989290_d299f19f84ff2ff6ec299132a6d09833.png (and zoom in of course)