Total number of codes possible
= 10*10*10*10 = 10000 as there are 10 possible digits for each of the 4 characters of the code. Therefore there must be 999 incorrect codes and 1 correct code.
Now probability that the person gets the correct code within 3
tries is computed here as:
= 1 - Probability that all 3 tries are incorrect codes.
= 1 - ( Number of ways to select 3 codes from 999 incorrect ones / Total ways to select 3 codes from 1000 codes)
Therefore 0.003 is the required probability here.
Now for a 6 digit code, the same probability is computed here as:
Therefore 0.000003 is the required probability here.
Get Answers For Free
Most questions answered within 1 hours.