Serving the Quantitative Finance Community

 
User avatar
darkforce
Topic Author
Posts: 0
Joined: October 21st, 2005, 4:58 pm

no of ways

December 25th, 2006, 3:11 am

There are 'N' spaces and you have 'a' red balls and 'b' black balls (a+b = N). In how many ways can you place the balls in 'N' spaces so that the following condition holds: No two black balls are together. How would this result change if: Each red and black ball is distinct (a1, a2, b1 is a diff than a2, a1, b1) and we know the ball at the 'N'th posn has to be red.
 
User avatar
sevvost

no of ways

December 25th, 2006, 4:52 am

A similar (although not identical question) was discussed earlier.
 
User avatar
noexpert
Posts: 0
Joined: April 27th, 2007, 2:20 pm

no of ways

June 14th, 2007, 3:56 pm

The answer to the first part should be (a+1 C b) and the answer to the second part should be (a+1 C b)* a!b! Is this correct?
Last edited by noexpert on June 13th, 2007, 10:00 pm, edited 1 time in total.
 
User avatar
JasonEE
Posts: 0
Joined: June 6th, 2007, 9:48 pm

no of ways

June 17th, 2007, 3:39 am

QuoteOriginally posted by: sevvostA similar (although not identical question) was discussed earlier.So, do you have the correct answer to this question?
 
User avatar
ArthurDent
Posts: 5
Joined: July 2nd, 2005, 4:38 pm

no of ways

August 3rd, 2007, 6:38 pm

Balls indistinguishable:Place b black balls in a line. There are remain (a) red balls to be placed in (b+1) locations, of which the two at the end have >=0 red balls, and the other (b-1) in the middle have >=1 red balls.= partition (a+2) into at most (b+1) integers, each >=1.= partition (a+2 + b+1) into exactly (b+1) parts, each >=1So task is to Partition N into exactly R parts, P(N,R)The first part is >1 or =1, so we have:P(N+1,R) = P(N,R) + P(N,R-1) for N>R>1with initial P(x,x) = P(x,1) = 1 That's very basic now, so if that doesn't look familiar, look up gumdrop problem...
Last edited by ArthurDent on August 4th, 2007, 10:00 pm, edited 1 time in total.
 
User avatar
ramnathv
Posts: 0
Joined: June 22nd, 2005, 8:58 pm

no of ways

August 22nd, 2007, 6:45 pm

There needs to be at least 1 red ball between each pair of black balls. So the (b-1) spaces between the black balls have to be filled with red balls. That leaves us with a-(b-1) red balls to place. Now they can be placed either in the (b-1) spaces between the black balls, or in the 2 spaces at the ends. That can be done in C(a-b+1, b+1) ways. Quick check, when a=b-1, there is only one way to do it.