RE: [Golfing] Collatz Conjecture 08-21-2015, 04:27 PM
#3
(08-21-2015, 04:26 PM)Shebang Wrote: What exactly do we need to print, if anything?
Anyways, here's a straightforward Python solution (38 Bytes).
Code:n=input() while n>1:n=[n/2,3*n+1][n%2]
You're lucky Stuck has no while-loops ;P
Oh, I should have clarified. You print the entire sequence from the input until you reach 1.















![[+]](https://sinister.li/images/modern/collapse_collapsed.png)