Let be the probability of getting heads when you throw coins. Then some counting techniques (combinatorics) gives
where (pronounced “en factorial”) means multiply the numbers from 1 to . To see the validity of this formula apply it to cases where is small and you know the answers. For example, when , then
because . The first equation says that the probability of getting a head when tossing a single coin is 0.5 or 50% and that of getting a tail (zero head means a tail) is also 50%.
For two coins, there are three probabilities:
You can see these results by actually enumerating the outcomes: (H,H), (H,T), (T,H), (T,T). So, there is only one possibility of getting either two heads or two tails, while there are two possibilities for getting one head. These outcomes lead to the probabilities above. Try the formulas for three coins and verify the probabilities for the 8 outcomes: (H,H,H), (H,H,T), (H,T,H), (T,H,H), (T,T,H), (T,H,T), (H,T,T), (T,T,T).
The probability of getting 6 heads in tossing 10 coins is
and the probability of getting 6000 heads in tossing 10000 coins is
Most calculators cannot find the answer to this probability, because of the large factorials. However, there is a formula which approximates the natural logarithm of very accurately when both and are large, and all scientific calculators are capable of finding the result of that formula. Here is the formula:
Knowing the logarithm, you can find the probability itself: . You can check the formula against the exact result for not-so-large values such as , , , and , and note that as and get larger and larger, the approximation becomes better and better. For , you get
This is approximately 0.000…0003 with 89 zeros between the decimal point and 3. You should multiply this by 100 to get the percentage. That gets rid of two zeros.