if there is an equal probability of a child being born a boy or a girl , what is the probability that a couple who have 3 children have two children of the same sex and one of the opposite sex ?
"let boy be represented by b and girl by g . the possible outcomes of two children of same sex and one of opposite sex can be : bbg or gbb or bgb or ggb or bgg or gbg ( 1 / 2 * 1 / 2 * 1 / 2 ) + ( 1 / 2 * 1 / 2 * 1 / 2 ) + ( 1 / 2 * 1 / 2 * 1 / 2 ) + ( 1 / 2 * 1 / 2 * 1 / 2 ) + ( 1 / 2 * 1 / 2 * 1 / 2 ) + ( 1 / 2 * 1 / 2 * 1 / 2 ) 1 / 8 + 1 / 8 + 1 / 8 + 1 / 8 + 1 / 8 + 1 / 8 = 6 / 8 = 3 / 4 answer : ( d )"
divide(const_2, 3)