I'm a little rusty on my math so bear with me. I was thinking about permutations and probability. A coin toss probability of landing on tails (or heads) is 0.5. While the chances of another toss is still 0.5, the collective chances are halved each time, correct? So the chances of getting 5 of the same in a row is 0.03125, about 3%. Now if I want to calculate the possible permutations of 10 coin tosses, that would be 2^10, which is 1024, correct?
How could I calculate all permutations that exclude any set with more than a predetermined number of repeated tosses? I am basically trying to get the most probable sets of all permutations.
In case the actual question is 'out of 10 tosses of a fair coin, which sequence of outcomes is the most likely', you need to use binomial probability, with $P(H)=\frac{1}{2}, n=10$, and find the mode, which is $\lfloor (n+1)p\rfloor$ in this case.