I have $n$ Bernoulli trials with probabilities of success and failure $p$ and $q=1-p$. How can I find a probability that number of successes is divisible by some given number. I.e. if we choose $3$ than we should consider cases where number of successes equals $0$, $3$, $6$, $9$, etc. Using standard formula for probability of exactly $k$ successes we get
$$ \binom{n}{0}p^0q^{n-0} + \binom{n}{3}p^3q^{n-3} + \binom{n}{6}p^6q^{n-6} + \dots = \sum\limits_k \binom{n}{3k}p^{3k}q^{n-3k} $$
Is there any way to do this summation and get some analytical expression? For other numbers, I believe, we should just change $k$ multiplier.