So basically, the wording in this question, to me, is weird. It goes as follows:
Explain why the following formula gives the power $e$ of a given prime $p$ in $n!$:
$$e = \sum\limits_{i=1}^{\log_pn}\left\lfloor\frac{n}{p^i}\right\rfloor.$$
Take $15!$: this function says $15! = 2^{11}\cdot 3^6\cdot 5^3\cdot 7^2\cdot 13$. This is really interesting, but I have no idea how this little function works. So if someone could give some intuition on that, it'd be much obliged!
In certain sense, this is a generic way of transforming a sum to something else which is hopefully more manageable. To understand what it is doing, let us look at following figure and count the number of black squares.
$$\begin{array}{cccc|cc} \blacksquare & \square & \square & \square & \rightarrow & 1 \\ \blacksquare & \square & \blacksquare & \square & \rightarrow & 2 \\ \blacksquare & \square & \blacksquare & \blacksquare & \rightarrow & 3 \\ \blacksquare & \blacksquare & \blacksquare & \blacksquare & \rightarrow & 4\\ \hline \downarrow & \downarrow & \downarrow & \downarrow & & \downarrow \\ 4 & 1 & 3 & 2 & \rightarrow & 10 \end{array}$$ One obvious way of counting the black squares is count the number in each column and then sum the result. This gives us $$4 + 1 + 3 + 2 \to 10.$$
Another way is slice the figure horizontally in four layers. Count the number of black squares in each layer and then sum the result. This give us $$1 + 2 + 3 + 4 \to 10\;\text{ again!}$$ The key is no matter which way you count, you get the same number.
Now imagine you pick a prime $p$ and replace the figure above by one with $n$ column and at most $\lfloor \log_p n\rfloor$ layers.
For each integer $k$ between $1$ and $n$, you place $e_k$ black squares into the bottom of $k^{th}$ column where $e_k$ is the exponent of $p$ in the prime factorization of $k$. The total number of black squares will be the number $e$ you are looking for. i.e.
$$e = \sum_{k=1}^n e_k$$
Now slice your figure horizontally and count from bottom to top.
On the $1^{st}$ layer (i.e the bottom most layer), the number of black square is the number of integer $k$ which divides $p$. There are $\lfloor \frac{n}{p^1} \rfloor$ of them.
On the $2^{nd}$ layer, the number of black sqaure is the number of integer $k$ which divides $p^2$. There are $\lfloor \frac{n}{p^2} \rfloor$ of them.
Repeat this procedure to other layers. In general, there will be $\lfloor \frac{n}{p^j} \rfloor$ black squares in the $j^{th}$ layer.
If you add this up, you will get back same number of black squares. This implies:
$$e = \sum_{k=1}^n e_k = \sum_{j=1}^{\log_p n} \left\lfloor \frac{n}{p^j} \right\rfloor$$