How many three digit numbers contain the digit 5 at least

This topic has expert replies
Source: — Problem Solving |

GMAT/MBA Expert

User avatar
GMAT Instructor
Posts: 8086
Joined: Sat Apr 25, 2015 10:56 am
Location: Los Angeles, CA
Thanked: 43 times
Followed by:29 members

by Scott@TargetTestPrep » Fri May 10, 2019 4:39 pm
swerve wrote:How many three digit numbers contain the digit at least once?

A. 52
B. 128
C. 252
D. 648
E. 900

The OA is C

Source: Economist GMAT
For the numbers in the 100's, 10 numbers (150, 151, ..., 159) contain the tens digit 5, and 10 numbers (105, 115, ..., 195) contain the units digit 5. However, we double counted 155. Therefore, 10 + 10 - 1 = 19 numbers in the 100's contain the digit 5 at least once. We can use the same reasoning to argue that there are 19 numbers that contain the digit 5 at least once in the 200's, 300's, etc. (excluding the 500's). That is because all the numbers in the 500's contain the digit 5 at least once; so there are 100 numbers in the 500's that contain the digit 5 at least once.
Therefore, in total, we have 19 x 8 + 100 = 152 + 100 = 252 three-digit numbers that contain the digit 5 at least once.

Alternate Solution:

We will use the formula:

#(three digit numbers) = #(three digit numbers that contain the digit 5 at least once) + #(three digit numbers that do not contain the digit 5).

Notice the number of three digit numbers, or equivalently, the number of terms between 100 and 999 inclusive, is 999 - 100 + 1 = 900.

To find the number of three digit numbers that do not contain the digit 5: There are 8 choices for the hundreds digit (all digits except 0 and 5), 9 choices for the tens digit (all digits except 5) and 9 choices for the units digit (all digits except 5); for a total of 8 x 9 x 9 = 648 numbers.

Therefore, there are 900 - 648 = 252 three digit numbers that contain the digit 5 at least once.

Answer: C

Scott Woodbury-Stewart
Founder and CEO
[email protected]

Image

See why Target Test Prep is rated 5 out of 5 stars on BEAT the GMAT. Read our reviews

ImageImage