Suppose we have $n$ keys. We try each key at random to open a door. If we $\bf discard$ the ones that don't work, what is the probability that we open the door in the kth try? What if we dont discard the previously tried keys?
$$\bf \underline{Attempt \; to \; the \; solution}$$
We can call $E_i$ to be event that the ith key opens the door. Clearly, since we have $n$ keys $P(E_i) = \frac{1}{n}$. Here is where I am having trouble trying to express our outcome in terms of events $E_i$. I feel like the answer is just $P(E_k) = \frac{1}{n}$ but perhaps the phrasing of the problem is confusing.
Now, if we dont discard. Suppose we put first key into door. there are $n-1$ possible ways that it wont work cause $1$ of them is the one that works.same holds for the second and third and so forth until we get to the $k-1$th case. The next case the one that opens the door can be done in 1 way of course. Thus,
$$ P = \frac{(n-1)^{k-1} }{n} $$
Is this a correct approach?