this is a problem I think I actually solved but I don't like my solution
the problem :
let consider 6 balls numbered from 1 through 6 and a box with 6 compartments numbered from 1 through 6.
you randomly put one ball in each compartment and each compartment must contain only one ball.
question : what's the probability that at least 4 balls are put in a compartment with the same number.
how I solved the problem : since all the outcomes are equally likely I can use the discrete uniform law
let denote the event 'at least 4 balls are put in a compartment with the same number.' as A
I just have to count #total outcomes and #A
$card(\Omega) = 6!$
A ={(1,2,3,4,5,6),(1,2,3,4,6,5),(1,2,3,5,4,6),(1,2,3,6,5,4),(1,2,4,3,5,6),(1,3,2,4,5,6),(2,1,3,4,5,6)}
=> $card(A) = 7$
so $P(A)$ = $\frac{7}{6!}$
not sure I have not forgotten any case though
I want another 'more formal' way to solve this problem.
thank you.