.
Your help will be appreciated thanks!
Let a(1)=5. Define a(n) to be (a(n-1))/2 if a(n-1) is even, 3a(n-1)+1 if a(n-1) is odd for all other natural numbers n.
What is the fourth term of the sequence?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Let us calculate the second term. Since =5 is odd, = = 3*5+1= 16.
Now calculate the third term. Since =16 is even, = = = 8.
Next calculate the fourth term. Since =8 is even, = = = 4.