5 partners lock a safe with several locks and share out keys so that any 3 of them together can open every lock, but no 2 of them can. What’s the fewest locks they need?
Right answers go through as you type.
Show the solution
Answer: 10
Partners5
×
Then4
=
20÷2=10 pairs
Step 1 · Every pair must be stopped by some lock
a lock neither of the 2 has a key to
No 2 partners can open the safe, so for each pair there’s a lock that both of them are missing.
Step 2 · That lock’s keys go to everyone else
all 3 of the others
If any of the other 3 also lacked that key, a trio could be stuck. So the lock stops exactly one pair and no other.
Step 3 · One lock for each pair
(25)=5×4÷2=10
Each pair needs its own lock, and a lock per pair is enough: any trio includes someone outside every pair, so it can open all of them.