Difference between revisions of "2006 AIME I Problems/Problem 7"

(Solution)
(expand explanation, fix)
Line 1: Line 1:
 
== Problem ==
 
== Problem ==
 +
Find the number of [[ordered pair]]s of [[positive]] [[integer]]s <math> (a,b) </math> such that <math> a+b=1000 </math> and neither <math> a </math> nor <math> b </math> has a zero digit.
  
Find the number of ordered pairs of positive integers <math> (a,b) </math> such that <math> a+b=1000 </math> and neither <math> a </math> nor <math> b </math> has a zero digit.
+
== Solution ==
 +
There are <math>\left\lfloor\frac{999}{10}\right\rfloor = 99</math> numbers up to 1000 that have 0 as their units digit. All of the other excluded possibilities are when <math>a</math> or <math>b</math> have a 0 in the tens digit, and since the equation is [[symmetry|symmetric]], we will just count when <math>a</math> has a 0 in the tens digit and multiply by 2 (notice that the only time both <math>a</math> and <math>b</math> can have a 0 in the tens digit is when they are divisible 100, which falls into the above category, so we do not have to worry about [[Principle of Inclusion-Exclusion|overcounting]]).  
  
== Solution ==
+
Excluding the numbers divisible by 100, which were counted already, there are <math>9</math> numbers in every hundred numbers that have a tens digit of 0 (this is true from 100 to 900), totaling <math>9 \cdot 9 = 81</math> such numbers; considering <math>b</math> also and we have <math>81 \cdot 2 = 162</math>. Therefore, there are <math>999 - (99 + 162) = 738</math> such ordered pairs.
There are <math>\frac{1000}{10} = 100</math> numbers up to 1000 that have 0 as their units digit. All of the other excluded possibilities for <math>a</math> are when <math>a</math> or <math>b</math> have a 0 in the tens digit, or if the tens digit of <math>a</math> is 0 or 9. Excluding the hundreds, which were counted above already, there are <math>9 \cdot 2 = 18</math> numbers in every hundred numbers that have a tens digit of 0 or 9, totaling <math>10 \cdot 18 = 180</math> such numbers. However, the numbers from 1 to 9 and 991 to 999 do not have 0s, so we must subtract <math>18</math> from that to get <math>162</math>. Therefore, there are <math>1000 - (100 + 162) = 738</math> such ordered pairs.
 
  
 
== See also ==
 
== See also ==
 
{{AIME box|year=2006|n=I|num-b=6|num-a=8}}
 
{{AIME box|year=2006|n=I|num-b=6|num-a=8}}
  
[[Category:Intermediate Geometry Problems]]
+
[[Category:Intermediate Combinatorics Problems]]

Revision as of 16:51, 25 September 2007

Problem

Find the number of ordered pairs of positive integers $(a,b)$ such that $a+b=1000$ and neither $a$ nor $b$ has a zero digit.

Solution

There are $\left\lfloor\frac{999}{10}\right\rfloor = 99$ numbers up to 1000 that have 0 as their units digit. All of the other excluded possibilities are when $a$ or $b$ have a 0 in the tens digit, and since the equation is symmetric, we will just count when $a$ has a 0 in the tens digit and multiply by 2 (notice that the only time both $a$ and $b$ can have a 0 in the tens digit is when they are divisible 100, which falls into the above category, so we do not have to worry about overcounting).

Excluding the numbers divisible by 100, which were counted already, there are $9$ numbers in every hundred numbers that have a tens digit of 0 (this is true from 100 to 900), totaling $9 \cdot 9 = 81$ such numbers; considering $b$ also and we have $81 \cdot 2 = 162$. Therefore, there are $999 - (99 + 162) = 738$ such ordered pairs.

See also

2006 AIME I (ProblemsAnswer KeyResources)
Preceded by
Problem 6
Followed by
Problem 8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
All AIME Problems and Solutions