Why does this loop only once? : <pre><code>while count &gt; 0:
     if count = 0:
        return n
     elif count &lt; 0:
        print(" ") # prints empty if n is below 0
     else:
        count = count - 1
        collect += math.ceil((n - 5)/2)
     return collect
</code></pre>

<p>The inputs are (1003, 3) - result is 499, which means it just loop once and subtracts 5 and then divides by 2, then it stops. Anyone know why?</p>
