
Iordan G. answered 04/17/24
Math PhD; Expert in Discrete Math, Proofs, Algorithms
It seems more plausible that different digits will be assigned to different keys.
Let's rephrase the problem. There are ten digits and ten keys. At each login, each digit is assigned to a different key. The four digit code corresponds to a subset of size four from the keys, and there are 10 choose 4 such subsets. We leave fingerprints on the four keys in the subset. The order doesn't matter.
The problem is asking for the probability that we leave fingerprints in the same position during two successive logins. That's the same as asking that two randomly selected subsets of size 4 from a set of size 10 match. That's just 1 over 10 choose 4, or 4!*6!/10!
Martha B.
Thank you!04/06/24