s = int(input("Start number. "))
while s != 1:
if (s%2) == 0:
p=s/2
print (int(p))
s=p
else:
p=s+1
input ("Press Enter to finish.")
Can you see what this program does?
Does it still work if you change p=s+1 to p=s*3+1