# Calculating probability of 'at least one event occurring' for n independent events

I want to create an algorithm to calculate the OR of n independent events, anyone can help me?

-
Can you compute the probability that none of them occurs ? –  Joel Cohen Nov 9 '12 at 15:01
Hint: Use DeMorgan's laws and resolutely refuse to use FOIL. See this answer and the comments following it. –  Dilip Sarwate Nov 9 '12 at 15:15