20 is even, so the next number is 10. But we already know than the sequence of 10 contains 7 numbers.  So, for  20  we have  8 numbers.
So,  steps 20 = 8.

3 is odd, so the next number is 10. So just as above we get steps 3 = 8.