Let $n$, $p$ and $r$ be three positive integers. Prove that for $n \geqslant 3, r>1$, $$\sum_{k = 0}^{n} k! \neq p^\text{r}$$
SOURCE: BANGLADESH MATH OLYMPIAD (Preaparatory Question)
I am not so familiar with such a this kind of problem. Seeing that problem, I became little bit curious about what the text states and what will be its conception?
I couldn't solve the problem. Moreover, I don't know about the formula of $\sum k!$. Is there any? And I couldn't realize the essence of $p^\text{r}$ and what the reason is behind the fact the summation can't be equal to $p^r$ for some integer $p$.
Any kind of reference or conception will massively help me start with some approach to solve the above problem. Thanks for your support and effort in advance.
The question asks about the prime factorisation of $\sum_{k=0}^{n}k!$. The first thing to notice is that you have $0!=1!=1$ and all the other terms are divisible by 2, so the sum is divisible by 2. Thus if we are looking for a counterexample, we must have $p$ even, and so since $r>1$, $4$ divides the sum.
Now, the sum begins $0!+1!+2!+3!=10$, and then all terms after this are $k!$ for $k\ge4$. Thus, for $n\ge3$, $4$ does not divide the sum, a contradiction.