I am a newbie and while studying prime factors came across this question:

How many times can you halve a number, such that it remains whole?

E.g. : 
12 => 2
32 => 5

Here, the number can be very very large, i.e. number> 10^20.
However, as long as there's a mathematical formula, it should not matter.

Also, what would be the answer if i had to divide by 3 or 5 or x, instead of 2?

I found [this](https://math.stackexchange.com/questions/2589831/how-many-times-can-i-divide-a-number-by-another) similar question, but could not understand the answer well. Can anyone help me with the answer to this?
Thank you!