JavaScript (ES6), 3130 bytes
f=n=>n&&n+' '+ff=n=>n&&n+[,f(n&1?n>>1:n*3+1)]
Or 30 bytes in reverse order.Try it online!
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchangef=n=>n&&n+' '+ff=n=>n&&n+[,f(n&1?n>>1:n*3+1)]
Or 30 bytes in reverse order.Try it online!