Drunken Man and the Room Key

Here is an interesting but misleading probability question: A drunk man reaches his home and tries the door key from a bunch of 10 keys. If the first key doesn’t work, he returns the key to the bunch and randomly selects another key repeatedly until he opens the door. The question is: which precise trial has the highest probability of opening the door?

The question is misleading because it does not ask you to guess by which try the person will find the right key and open the door. We’ll come to that topic a little later. The task is to find the probability of finding the right key at each try and show which one is the highest.

The probability of finding the right key in his first attempt = 1/10; ten keys and finding one at random is one out of 10 possible options.
The probability of finding the right key in his second attempt = (9/10)x(1/10); it is the joint probability of not getting the right key in the first attempt (9/10) AND the chance of hitting the right on the second try.
The probability of finding the right key in his third attempt = (9/10)x(9/10)x(1/10). Here is the summary:

AttemptProbability
10.1
20.09
30.081
40.0729
50.06561

It doesn’t mean that person will open the door in the first attempt or never. We need to estimate something different to find how the probability of opening the door changes with attempts. The chance he opened the door in his second attempt is:
Probability he opened in the first OR probability he opened in the second = 1/10 + (9/10)*(1/10). Here is how that develops.

AttemptProbabilityProbability of
Right key by
Attempt
10.10.1
20.090.19
30.0810.27
40.07290.34
50.065610.41
60.0590.47

There is about a 50% chance he will open the door by his sixth attempt.