Post History
AWK, 46 bytes {c=0;for(n=$0;n-1;c++)n=n%2?n*3+1:n/2;print c} Try it online!
Answer
#1: Initial revision
# [AWK], 46 bytes {c=0;for(n=$0;n-1;c++)n=n%2?n*3+1:n/2;print c} [Try it online!][TIO-kvg157be] [AWK]: https://www.gnu.org/software/gawk/manual/gawk.html [TIO-kvg157be]: https://tio.run/##SyzP/v@/OtnWwDotv0gjz1bFwDpP19A6WVtbM882T9XIPk/LWNvQKk/fyLqgKDOvRCG59v9/Qy4jLmMuEy5TLjMucy4LLksuQwMuAA "AWK – Try It Online"