Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Let $X \text{~} \text{Binomial}(n, p)$.
What is $\text{P}[X \mod 2 = 0]$? Is it of the form $1/2 + O(1/2^n)$?