MathDB
Keys in safes

Source: Canada Repêchage 2014/2

June 18, 2016
combinatorics

Problem Statement

Alphonse and Beryl play a game involving nn safes. Each safe can be opened by a unique key and each key opens a unique safe. Beryl randomly shuffles the nn keys, and after placing one key inside each safe, she locks all of the safes with her master key. Alphonse then selects mm of the safes (where m<nm < n), and Beryl uses her master key to open just the safes that Alphonse selected. Alphonse collects all of the keys inside these mm safes and tries to use these keys to open up the other nmn - m safes. If he can open a safe with one of the mm keys, he can then use the key in that safe to try to open any of the remaining safes, repeating the process until Alphonse successfully opens all of the safes, or cannot open any more. Let Pm(n)P_m(n) be the probability that Alphonse can eventually open all nn safes starting from his initial selection of mm keys.
(a) Show that P2(3)=23P_2(3) = \frac23.
(b) Prove that P1(n)=1nP_1(n) = \frac1n.
(c) For all integers n2n \geq 2, prove that P2(n)=2nP1(n1)+n2nP2(n1).P_2(n) = \frac2n \cdot P_1(n-1) + \frac{n-2}{n} \cdot P_2(n-1).
(d) Determine a formula for P2(n)P_2 (n).