Let’s say i use a function with variable a that goes as follows:

{mod(a,2) = 1:3a+1, a/2}

How do i get its answer and put it through the same function until it reaches 1?

Let’s say i use a function with variable a that goes as follows:

{mod(a,2) = 1:3a+1, a/2}

How do i get its answer and put it through the same function until it reaches 1?