There is a question on factorials:
Q: What is the largest possible integer value of $n$ if $4^n$ divides $16!$ evenly.
According to an explanation, the question is asking 'how many factors of $4$ there are in $16!$'. But then it is solved by counting the number of $2$s among the even factors of $16!$ ($16, 14, 12, ...$). I don't understand the solution steps. Is it possible to provide an explanation for this solution strategy?
Thank you.
For primes $p$, it is relatively simple to determine the power with which it divides a factorial $m!$ $$ \left\lfloor \frac mp\right\rfloor + \left\lfloor \frac m{p^2}\right\rfloor + \left\lfloor \frac m{p^3}\right\rfloor+\ldots$$ because there are so many multiples of $p$ among the factors defining $m!$, plus so many multiples of $p^2$ (i.e., of another $p$), plus so many multiples of $p^3$ (i.e., of yet another $p$), and so on. This simple argument does not work for composite numbers in place of $p$, simply because divisibility can be "collected" from diffferent factors.
However, knowing the power for the prime $2$, you can easily find out the power for $4=2^2$.