3Npuls1

 cout the transform times from n to 1 according to the rules below:
 if n is odd,then n=3*n+1;if n is even ,then n =n/2