I saw some result that some article used, (without proving) that stated:$$\int_0^1 p^k (1-p)^{n-k} \mathrm{d}p = \frac{k!(n-k)!}{(n+1)!}$$
But I was wondering, how would you integrate it? How did this integral come about? Is it something to do with the binomial distribution?