Example — Safe, patient burglar

A safe has a combination of 55 digits from 00 to 99.

(a) The probability of guessing it on the first attempt is 1/105=1/1000001/10^5 = 1/100\,000: the total cases are the arrangements with repetition, that is 10510^5.

(b) If 10001000 attempts are made, all different, the probability of getting it at least once is computed with a combinatorial argument. The total cases are the ways of choosing 10001000 distinct attempts out of 10510^5, that is (1051000)\binom{10^5}{1000}. The favourable cases are those in which the correct combination is among the 10001000 chosen attempts, that is (105110001)\binom{10^5-1}{1000-1}. Simplifying:

P=(10511031)(105103)=103105=1100.P = \frac{\binom{10^5-1}{10^3-1}}{\binom{10^5}{10^3}} = \frac{10^3}{10^5} = \frac{1}{100}.

Topics: Probability
Concepts: Simple combinations · Arrangements with repetition · Probability
Methods: Simple combinations · Arrangements with repetition
Skills: Combinatorics · Probability calculation