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 similar question, but could not understand the answer well. Can anyone help me with the answer to this? Thank you!
For primes, this number is called "valuation of $n$ with respect to $p$" , it is the exponent corresponding with $p$ in the prime factorization of $n$.