Question #16952 suppose that you own 8 math books and 6 computer science books and wish to fill 7 position on a shelf. what is the probability that the first 4 position are to be occupied by math books and the last 3 by computer science books?
Solution. First compute the total number of filling the 7 position by 8 math books and 6 computer science. First, suppose that we take only math books, then we will get 7!(78), suppose that we take k books on computer science k=1,6, then we will get (k7)(k6)k!⋅(7−k8)(7−k)! variants of filling. To sum it up, the total number of filling possibilities is 7!(78)+∑k=16(k7)(k6)k!⋅(7−k8)(7−k)!. The number of elementary events that promote "the first 4 position are to be occupied by math books and the last 3 by computer science books" equals (48)4!⋅(36)3!, thus the probability equals
7!(78)+∑k=16(k7)(k6)k!⋅(7−k8)(7−k)!(48)4!⋅(36)3!
Answer. 7!(78)+∑k=16(k7)(k6)k!⋅(7−k8)(7−k)!(78)4!⋅(36)3!