Show HN: A Collatz Conjecture Calculator as Jupyter Notebook (github.com)

3 points by isuleman ↗ HN
This is simple implementation of Collatz Conjecture in Jupyter Lab. Try it on your computer or in Google Colab to visualize the problem for any given positive integer, number of iterations, and all the intermediate numbers till you get stuck on the 4 2 1 loop :D

2 comments

[ 4.4 ms ] story [ 14.7 ms ] thread
I noticed you import mplcursors but don't use it, I guess it was accidentally left in, it looks like quite a handy module.
Sorry I was trying to make the chart interactive so that someone can use mouse to see exact value in chart by pointing.....but on my PC it wasn't working properly so I revert back to the original plot.... I am trying and will use it and will update the Notebook :)