An algebra problem by utkarsh grover

Algebra Level pending

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.


The answer is 0.368.

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.

1 solution

Tapas Mazumdar
May 28, 2017

The number of ways that we can assign n n keys to n n locks such that no key gets inserted into its appropriate lock is given by the dearrangement formula

D n = n ! r = 0 n ( 1 ) r r ! D_n = n! \sum_{r=0}^{n} \dfrac{(-1)^r}{r!}

Now the total number of permutations possible in our sample space is S n = n ! S_n = n! .

Thus for n n locks, the required probability is

P n = D n S n = r = 0 n ( 1 ) r r ! P_n = \dfrac{D_n}{S_n} = \sum_{r=0}^{n} \dfrac{(-1)^r}{r!}

As n n \to \infty , we get

P = lim n r = 0 n ( 1 ) r r ! = r = 0 ( 1 ) r r ! = e 1 = 1 e 0.367879 P_{\infty} = \lim_{n \to \infty} \sum_{r=0}^{n} \dfrac{(-1)^r}{r!} = \sum_{r=0}^{\infty} \dfrac{(-1)^r}{r!} = e^{-1} = \dfrac 1e \approx 0.367879

The result rounding to nearest tenth gives the answer as 0.4 \boxed{0.4} .


Note:

The result r = 0 ( 1 ) r r ! = e 1 \displaystyle \sum_{r=0}^{\infty} \dfrac{(-1)^r}{r!} = e^{-1} follows from the Taylor series for e x e^x given by

e x = r = 1 x r r ! e^x = \sum_{r=1}^{\infty} \dfrac{x^r}{r!}

Putting x = 1 x=-1 gives the desired result.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...