SOLUTION: How many 5-digit numbers contain at least one 3?

Algebra ->  Probability-and-statistics -> SOLUTION: How many 5-digit numbers contain at least one 3?      Log On


   



Question 885632: How many 5-digit numbers contain at least one 3?
Answer by Edwin McCravy(20056) About Me  (Show Source):
You can put this solution on YOUR website!
When you see "at least one" in a probability problem, you usually first
first find the probability of the complement event, which is "none at all",
and then subtract from 1.  That's what we do here.

First we find the denominator of the probability, which
is the number of 5 digit numbers:

There are two ways to determine this.

First way:  The number of 5-digit numbers is 99999 minus all
the numbers with fewer than 5 digits, which is 9999, So the
number of 5-digit numbers is 99999-9999 = 90000

Second way:
Choose the 1st digit 9 ways (can't choose 0).
Choose the 2nd digit 10 ways (can choose 0).
Choose the 3rd digit 10 ways.
Choose the 4th digit 10 ways.
Choose the 5th digit 10 ways.

9×10×10×10×10 = 90000

Now we find the numerator, which is all the 5-digit numbers
which do not contain a 3.  That is, we choose only digits from
these 9 {0,1,2,4,5,6,7,8,9}

Choose the 1st digit 8 ways (can't choose 0).
Choose the 2nd digit 9 ways (can choose 0).
Choose the 3rd digit 9 ways.
Choose the 4th digit 9 ways.
Choose the 5th digit 9 ways.

8×9×9×9×9 = 52488

Probability of complement event = 52488%2F90000 which
reduces to 729%2F1250

Desired probability = 1%22%22-%22%22729%2F1250 %22%22=%22%221250%2F1250%22%22-%22%22729%2F1250%22%22=%22%22521%2F1250

Edwin