The problem is just similar as, if we have x letters and n envelops and no letter goes to the right envelops. tr= number of ways of putting xi=1,2,...r, in r places
so that no xi goes to the corresponding place =r!(1−11+2!1−3!1+4!1−5!1+...+r!(−1)r).....(∗) ∴ Putting r=4 in (∗), we get t4=4!(2!1−3!1+4!1) =4!(21−61+241) =4!4![12−4+1]=9