A train consists of n carriages and there are P passengers. Each one of the P passengers randomly selects the carriage in which he will ride. On the basis of above information, answer
If n = 4 and p = 6, then the probability that there will be at least one passenger in each carriage is
195512
F(n,P)=np−nC1(n−1)p+nC2(n−2)p+....(−1)n−1 nCn−11pnpF(4,6)=46−4C136+4C226−4C31646=195512
Also if P < n then probability is zero and if P=n then,nn−nC1(n−1)n+....+(−1)n−1 nCn1nnn=n!nn