You toss a coin n times. What is the probability that the number of heads you’ll get is divisible by 3?
(Find an exact formula, not involving sums of unbounded length; it may depend on the remainder of n modulo 6).
I believe that the problem is to find a formula for:
$$\frac{\sum\limits_{i=0}^{\lfloor n/3\rfloor} {n \choose 3i}}{2^n}$$ but I'm not really sure how to find a formula for the sum in the numerator. A hint for how to evaluate $$\sum\limits_{i=0}^{n/3} {n \choose 3i}$$ when n is divisible by three would also be much appreciated
(Note: this is not a homework problem)
Let $\omega $ be a primitive cube root of unit.
Hint: Consider $(1 + \omega)^n, ( 1 + \omega^2)^n, (1+1)^n$. Expand using the Binomial Theorem, and use the fact that $1 + \omega + \omega^2 = 0, \omega^3 = 1 $.
This shows that $(1 + \omega)^n+ ( 1 + \omega^2)^n+ (1+1)^n = 3 \sum { n \choose 3i} $.