I am struggling a bit with this problem, I think I am somehow close but I miss something.
Let's assume we have numbers from $1$ to $30$, we pick $5$ random numbers (with repetition) and we want to know the probability to pick at least $3$ numbers in sequence.
Denominator: The total number of combinations without repetition should be $$30!/(5!*(30-5)!)$$
and with repetition: ( 5 5 6 7 8 ) is a valid sequence, this is what i am actually interested in
$$(30+5-1)!/(5!*(30-1)!)$$
Numerator: I should get the ways to pick $5$ numbers where at least $3$ are in a sequence. There are $28$ ways to pick $3$ numbers in a row, if we just would pick $3$, but with $5$ I am having the problem.
My approach is $28$ $+$ the way to pick the other $2$ numbers, that is $C(30+2-1,2)$
The flaw here I think is that I think I am counting twice some combinations.
How can I get the number of combination of picking $3$ consecutive numbers with $5$ picks?
Edit: To clarify repetition is allowed, so $5\; 5\; 6\; 7\; 8$ is a valid pick. Order is not important, so $5$ $5$ $6$ $7$ $8$ is the same as $6$ $7$ $8$ $5$ $5$.