I've ran into this tricky problem I can't seem to solve:
Suppose there are $n$ passwords, where only one allows you to log into a system. If the system blocks you out after 3 attempts, what is the probability of logging in?
The problem asks for the particular case when $n=10$, but I suppose this doesn't change much.
What I've tried:
Let $A_i=\text{The $i$-th key is the correct one.}$ Then $P(\text{Log in})=P(\bigcup A_i)$, $i=1,2,3$.
This yields (as the $A_i$ should be mutually exclusive) that the probability of logging in is $\frac {1}{n}+\frac {1}{n-1}+\frac {1}{n-2}$ but I know this is incorrect.
Why is my attempt wrong, and how do you solve this?