Using Wikipedia’s pseudocode description of the Collatz Conjecture, I whipped something up in Python. Try it!
n = int(input("What number would you like to explore? "))
while n > 1:
print(n)
if n % 2 != 0:
n = 3*n + 1
else:
n = n/2
print(n)
--
Brie