I've been trying to figure out how $n!$ and $x^n$ are related (where x is an integer) for most of the morning - I know it must be the key to unlocking this problem.
Up to this point I've only used the Extended Euclidean Algorithm to find GCDs, but I know that's not going to work in this case.
The hard part is obviously coming up with the key insight / theorem to apply. If anyone can help me get that insight without telling me outright, that would be awesome. Otherwise, a hint is much appreciated.
Thanks.
Observe that the only prime factor of $2^n($ where $n\ge1)$ is $2$
Using Highest power of a prime $p$ dividing $N!$,
the highest power of $2$ in $50!$ will be $$\sum_{1\le r<\infty}\left\lfloor\frac{50}{2^r}\right\rfloor=25+12+6+3+1=47$$