@goodiet,
Think of the number of ways to get 2 combinations of 5 red ball draws out of 500 draws .
You can do this 2 ways--count the possibilities, or develope a method of counting.
Lets do a developement based upon counting possibilities
2 out of 2 draws-- 1st # 2nd , one way
2 out of three draws 1st & 2nd, 1st & 3rd, 2nd & 3rd --3 ways
I'm gonna use a shorthand from now on possibilities this case is 1/2, 1/3. and 2/3
2 out of four draws--- 1/2. 1/3. 1/4. 2/3. 2/4. 3/4 ---6 ways
2 out of 5 draws---1/2. 1/3. 1/4. 1/5. 2/3. 2/4. 2/5. 3/4. 3/5. 4/5--10 ways
I'm beginning to see a pattern
2 out of 6 draws--10+5 ---15 ways
2 out of 7---15+6---21 ways
These are called triangular numbers and they are the sum of the (n-1)th possibilities. The Greeks called these triangular numbers and proved by induction that they can be generally calculated by the formula (n-1)*n/2
that is 2 out of 2=1*2/2=1
2 out of 2=2*3/2=3
2 out of 4=3*4/2=6
2 out of 5=4*5/2=10
2 out of 6=5*6/3=15
2 out of 7=6*7/2=21
....
2 out of n=(n-1)*n/2
let n be 500 and you'll get the number of ways you can get 2 consequitive red balls out of 500
BTW this was further generalized in the 16th Century from combinations of k oblects out of n possibilities which is given by n!/[k!(n-k)!].
In this case k=2 and n= number of draws---this collapses to n(n-1)/2 which is same as the triangular number.
So you now know the ways you can get 2 sets of consequitive red balls--and the probability of pulling one set of 5 consequitive red balls (from the first question). Call this P'(e)
But you're asking it to be done twice--so I gotta take it to that power, that is P'(e)*P'(e)
Now multiply that probability by the number of ways you can get 2 combinations out of n draws and you'll answer this question.
Rap