def syracuse_C14(u,n): L=[u] for i in range(1,n): if u%2==0: u=u//2 else: u=3*u+1 L=L+[u] return(L)