The Collatz conjecture is a famous unsolved problem in mathematics, sometimes call the 3n + 1 problem. This is a more complex program than my first Collatz program. The main question asked here was, "Is there a pattern to the length of sequences? Is it possible to modify the first program to keep track of the lengths of sequences from 1 to 200?" The main parts of this program are still loops, number variables, lists and conditionals. Everything in here is doable according to the Ontario 1 - 8 Math curriculum's coding strand for grades 5 and up. I would encourage teachers to have their students try this out rather than just giving them this program. You could/should start your students out using pseudo-coding depending on their experiences and abilities. If you would like to know more about this problem and how rich it is to use in class, there will be a video soon about it on the Mathomance YouTube channel: https://www.youtube.com/channel/UCH_2-wVHUNZ50JPIbdgKx2w. This video will also include how to export list results and take them into a spreadsheet program so they can be graphed and viewed visually.