In Casella and Berger Book (Statistical Inference), exercise 2.40 is
$$\sum_{k=0}^x {n\choose k}p^k(1-p)^{n-k}=(n-x){n\choose x}\int_0^{1-p}t^{n-x-1}(1-t)^xdt.$$
If I replace $x$ by $n$ then LHS becomes $1$ but RHS becomes $0$. Am I missing something?
My instinct is that the RHS will actually be $0 \cdot \infty$ since your integral will no longer converge. So, rather than being an incorrect equation, it'll just become an ill-posed one. :D