Having written the following program in Python:
#Collatz Conjecture
#if n is odd, 3n+1
#if n is even, n/2
while True:
print("**********")
n=input("Which number would you like to test? ")
i=1
print("**********")
while n!=1:
print("Step " + str(i) + ": " + str(n))
n=float(n)
if(n%2==1):
n=(n*3)+1
elif(n%2==0):
n=n/2
else:
print("Invalid number.")
i+=1
When given the number: 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
The second step is the result inf - does this break the Collatz Conjecture, or not?