If you are very good at maths you can maybe solve this. 
select any number 1 to 9 

if odd x3 +1

if even divide by 2

do this again and again