how to count range of answers
<p>I was suppose to write code for the collatz conjecture which would count the number of steps to get to 1. I have done but now I am suppose to "Write a program that reads a natural number N and finds a natural number n &lt; N with maximum HOTPO length among all natural numbers in the range 1 through N-1. Your program
should output both n and its HOTPO length" 
my code</p>

<pre><code>n = int(raw_input("Type a natural number: "))
count = 0
while n &gt; 1 :
    if (n % 2 == 0): 
        n = n / 2
        count = count + 1 
    else :
        n = n * 3
        n = n + 1 
        count = count + 1
print count   
</code></pre>
