ok so I've got this code which is aiming to work out the length of the first n collatz sequences. See: Collatz conjecture - Wikipedia, the free encyclopedia
Essentially for a given integer x, the sequence is as follows:
first term: x
second term: if x is even, x/2, if x is odd, 3x+1
continue...