Same thing as earlier (the one without asking for a starting number), but this time check the first scratch code in the article. https://sites.google.com/site/appelacad/home/collatz-conjecture