I'm not sure I've seen this puzzle before, and I really like it:

We have n keys and n boxes. Each key fits only one box. We shuffle the keys and put one in each box. Then we randomly break open 1≤k≤n boxes. What is the probability that we can unlock all the other boxes?

@christianp
If I understand this correctly, then it is zero unless $k>=n/2$. Since otherwise you dont have enough keys, right?

@orko no, because unlocking one box gives you another key

Spoilers

A Mastodon instance for maths people. The kind of people who make $$\pi z^2 \times a$$ jokes. Use $$ and $$ for inline LaTeX, and $ and $ for display mode.