there are n locks n and keys . each lock has only one right key which unlocks it . now we assign keys to locks each lock getting a single key . let the probability that no lock gets unlocked is P(n) . Let a equals P(n) when n tends to infinity . Find a to 3 decimal places.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
The number of ways that we can assign n keys to n locks such that no key gets inserted into its appropriate lock is given by the dearrangement formula
D n = n ! r = 0 ∑ n r ! ( − 1 ) r
Now the total number of permutations possible in our sample space is S n = n ! .
Thus for n locks, the required probability is
P n = S n D n = r = 0 ∑ n r ! ( − 1 ) r
As n → ∞ , we get
P ∞ = n → ∞ lim r = 0 ∑ n r ! ( − 1 ) r = r = 0 ∑ ∞ r ! ( − 1 ) r = e − 1 = e 1 ≈ 0 . 3 6 7 8 7 9
The result rounding to nearest tenth gives the answer as 0 . 4 .
Note:
The result r = 0 ∑ ∞ r ! ( − 1 ) r = e − 1 follows from the Taylor series for e x given by
e x = r = 1 ∑ ∞ r ! x r
Putting x = − 1 gives the desired result.