edited by
11,452 views
43 votes
43 votes

In how many ways can we distribute $5$ distinct balls, $B_1, B_2, \ldots, B_5$ in $5$ distinct cells, $C_1, C_2, \ldots, C_5$ such that Ball $B_i$ is not in cell $C_i$, $\forall i= 1,2,\ldots 5$  and each cell contains exactly one ball?

  1. $44$
  2. $96$
  3. $120$
  4. $3125$
edited by

11 Answers

11 votes
11 votes

Number of derangements of n-objects = $n! \sum_{i=0}^{n}\frac{(-1)^i}{i!}$

here $n =5.$

$\implies\ 5! \left [ \frac{(-1)^0}{0!} + \frac{(-1)^1}{1!} + \frac{(-1)^2}{2!} + \frac{(-1)^3}{3!}+ \frac{(-1)^4}{4!} + \frac{(-1)^5}{5!} \right ]$

$= 5! \left [ 1 - 1 +\frac{1}{2!} - \frac{1}{3!} + \frac{1}{4!} - \frac{1}{5!} \right ]$

$= \left [ \frac{5!}{2!} - \frac{5!}{3!} + \frac{5!}{4!} - \frac{5!}{5!} \right ]$

$= 60-20+5-1$

$= 44$

edited by
4 votes
4 votes

Here's an intutive explanation:

Suppose you want to find the no.of derangements of n then:

T(n) = total possible permutations - ( let 1 element be at it's proper place and rest are deranged + let 2 elements be at their proper place and rest are deranged + ......+ except one all elements at their proper place which is same as saying that all elements at their proper place)

T(n) = n! - (nC* T(n-1) + nC* T(n-2) + ... + 1)

Applying the eqn here

T(2) = 1

T(3) = 3! - ( 3C1*T(2) + 1)

Similarly you can find T(4) and T(5). 

1 votes
1 votes
Total permutations possible = 5!=120

Possible number of ways in which at least one ball is in cell = 5C1*4! – 5C2*3! + 5C3*2! – 5C4*1! + 1 = 76

->120-76=44
0 votes
0 votes

Use the following formula to calculate the number of derangement :

$ \left \lfloor \frac{n!}{e} +\frac{1}{2}\right \rfloor \quad $ 

 $ \left \lfloor \frac{n!}{e} +\frac{1}{2}\right \rfloor \quad $ 

=$ \left \lfloor \frac{5!}{e} +\frac{1}{2}\right \rfloor \quad $

=$ \left \lfloor \frac{120}{2.71828} +\frac{1}{2}\right \rfloor \quad $

=$44$  

Answer:

Related questions

41 votes
41 votes
1 answer
1
Ishrat Jahan asked Nov 2, 2014
5,567 views
Let $H_1, H_2, H_3,$ ... be harmonic numbers. Then, for $n \in Z^+$, $\sum_{j=1}^{n} H_j$ can be expressed as$nH_{n+1} - (n + 1)$$(n + 1)H_n - n$$nH_n - n$$(n + 1) H_{n+...
23 votes
23 votes
9 answers
2
19 votes
19 votes
4 answers
4
go_editor asked Dec 21, 2016
4,120 views
How many distinct ways are there to split $50$ identical coins among three people so that each person gets at least $5$ coins?$3^{35}$$3^{50}-2^{50}$$\binom{35}{2}$$\bino...