n = input("Please enter a number: ")
n = int(n)
i = 0
i = int(i)
while n != 1:
    i += 1
    if n % 2 == 0:
        n = n/2
        print(n)
    elif n % 2 != 0:
        n = 3*n + 1
        print(n)


print("The number of terms are: ", i)

f0109a80c8768f32438183b3a7ca26efb43265e3
<mask token>

<mask token>
while n != 1:
    i += 1
    if n % 2 == 0:
        n = n / 2
        print(n)
    elif n % 2 != 0:
        n = 3 * n + 1
        print(n)
print('The number of terms are: ', i)

n = input('Please enter a number: ')
n = int(n)
i = 0
i = int(i)
while n != 1:
    i += 1
    if n % 2 == 0:
        n = n / 2
        print(n)
    elif n % 2 != 0:
        n = 3 * n + 1
        print(n)
print('The number of terms are: ', i)

n = input("Please enter a number: ")
n = int(n)
i = 0
i = int(i)
while n != 1:
    i += 1
    if n % 2 == 0:
        n = n/2
        print(n)
    elif n % 2 != 0:
        n = 3*n + 1
        print(n)


print("The number of terms are: ", i)
