The two-event addition rule generalises, but the signs alternate: add the singles, subtract every pair, then add the triple back because it was removed one time too many.
Return .
Input
p_a = 0.5
p_b = 0.5
p_c = 0.3333333333333333
p_ab = 0.25
p_ac = 0.16666666666666666
p_bc = 0.16666666666666666
p_abc = 0.16666666666666666
Output
0.9166666666666666