The part I'm having trouble with specifically is how/why does the sum $$\sum_{i=1}^{\infty}\left\lfloor\frac{n}{p^i}\right\rfloor$$ give the greatest power of $p$ for which $n!$ is divisible. How is counting the multiples of $p$, $p^2$, $p^3$,... in $n$ related to $n!$ in such a way that when you sum up all of those you get the greatest power of $p$ that divides $n!$.
Also how would an inductive proof of the Legendre's formula look like? I've tried proving it specifically for $p=2$ and I took my IH to be $$v_2(n!)=\sum_{i=1}^{\infty}\left\lfloor\frac{n}{2^i}\right\rfloor$$ but I can't seem to extend this for $n+1$.