No runs of K consecutive tails in N coin tosses

For my Probability and Statistics classes I wrote a small application that solves an old and  well-known problem: “What is the probability that no runs of K consecutive tails will occur in N coin tosses?”

Continue reading