sum ((n-1) choose (k-1)) * (1 - p) ^ (n - k) * p ^ k with k from 1 to n