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
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 :)