Difference between revisions of "1985 AJHSME Problems/Problem 15"

(New page: ==Solution== This is a very common type of counting problem that you'll see quite often. Doing this the simple way would take too long, and might even make lots of mistakes. If you ever l...)
 
m
Line 1: Line 1:
 +
==Problem==
 +
 +
How many whole numbers between <math>100</math> and <math>400</math> contain the digit <math>2</math>?
 +
 +
<math>\text{(A)}\ 100 \qquad \text{(B)}\ 120 \qquad \text{(C)}\ 138 \qquad \text{(D)}\ 140 \qquad \text{(E)}\ 148</math>
 +
 
==Solution==
 
==Solution==
 +
 
This is a very common type of counting problem that you'll see quite often. Doing this the simple way would take too long, and might even make lots of mistakes.
 
This is a very common type of counting problem that you'll see quite often. Doing this the simple way would take too long, and might even make lots of mistakes.
  
 
If you ever learned about complementary counting, this would be the best time to utilize it. Instead of counting how many DO have 2's, why don't we count how many that DON'T?
 
If you ever learned about complementary counting, this would be the best time to utilize it. Instead of counting how many DO have 2's, why don't we count how many that DON'T?
  
The reasoning behind this is, the number of numbers that have a 2 is the same as the total number of numbers subtract the number of numbers that DON'T have 2's. And since it's easy to count the number of numbers, and it's easy to count how many numbers don't have twos, this problem becomes extremely simple.
+
So let's find the number of numbers. Obviously, we'd start by subtracting 100 from 400, getting us 300, but we're not done. Since just subtracting includes the number 400, we must subtract one (because 400 isn't allowed - it says between), getting us 299.
 +
 
 +
So how many numbers are there that DON'T have a 2? Well, we have 2 possibilities for the hundreds digit (1, 3, note that 2 is not allowed), 9 possibilities for the tens digit (1, 3, 4, 5, ... , 9, 0), and 9 possibilities for the ones digit. <math>2 \times 9 \times 9 = 162</math>. However, one of the numbers we counted is <math>100</math>, which isn't allowed, so there are <math>162-1=161</math> numbers without a 2.
 +
 
 +
Since there are 299 numbers that DON'T have any 2's, <math>299 - 161 = 138</math> numbers WILL have at least one two.
  
So let's find the number of numbers. Obviously, we'd start by subtracting 100 from 400, getting us 300, but we're not done. Since just subtracting includes the number 400, we must subtract one (because 400 isn't allowed - it says between), getting us 299.
+
<math>\boxed{\text{C}}</math>
  
So how many numbers are there that DON'T have a 2? Well, we have 2 possibilities for the hundreds digit (1, 3, note that 2 is not allowed), 9 possibilities for the tens digit (1, 3, 4, 5, ... , 9, 0), and 9 possibilities for the ones digit. <math>2 \times 9 \times 9 = 162</math>. Since there are 243 numbers that DON'T have any 2's, we can accurately assume that <math>299 - 162 = 137</math> numbers WILL have at least one two.
+
==See Also==
  
137 is ... not a choice?
+
[[1985 AJHSME Problems]]

Revision as of 22:56, 13 January 2009

Problem

How many whole numbers between $100$ and $400$ contain the digit $2$?

$\text{(A)}\ 100 \qquad \text{(B)}\ 120 \qquad \text{(C)}\ 138 \qquad \text{(D)}\ 140 \qquad \text{(E)}\ 148$

Solution

This is a very common type of counting problem that you'll see quite often. Doing this the simple way would take too long, and might even make lots of mistakes.

If you ever learned about complementary counting, this would be the best time to utilize it. Instead of counting how many DO have 2's, why don't we count how many that DON'T?

So let's find the number of numbers. Obviously, we'd start by subtracting 100 from 400, getting us 300, but we're not done. Since just subtracting includes the number 400, we must subtract one (because 400 isn't allowed - it says between), getting us 299.

So how many numbers are there that DON'T have a 2? Well, we have 2 possibilities for the hundreds digit (1, 3, note that 2 is not allowed), 9 possibilities for the tens digit (1, 3, 4, 5, ... , 9, 0), and 9 possibilities for the ones digit. $2 \times 9 \times 9 = 162$. However, one of the numbers we counted is $100$, which isn't allowed, so there are $162-1=161$ numbers without a 2.

Since there are 299 numbers that DON'T have any 2's, $299 - 161 = 138$ numbers WILL have at least one two.

$\boxed{\text{C}}$

See Also

1985 AJHSME Problems