返回题库

AIME 2006 II · 第 7 题

AIME 2006 II — Problem 7

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

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

解析

Solution

Solution 1

There are 99910=99\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 aa or bb have a 0 in the tens digit, and since the equation is symmetric, we will just count when aa has a 0 in the tens digit and multiply by 2 (notice that the only time both aa and bb can have a 0 in the tens digit is when they are divisible by 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 99 numbers in every hundred numbers that have a tens digit of 0 (this is true from 100 to 900), totaling 99=819 \cdot 9 = 81 such numbers; considering bb also and we have 812=16281 \cdot 2 = 162. Therefore, there are 999(99+162)=738999 - (99 + 162) = \boxed{738} such ordered pairs.

Solution 2

Let a=cdea = \overline{cde} and b=fghb = \overline{fgh} be 3 digit numbers:

 cde
+fgh
----
1000

ee and hh must add up to 1010, dd and gg must add up to 99, and cc and ff must add up to 99. Since none of the digits can be 0, there are 9×8×8=5769 \times 8 \times 8=576 possibilites if both numbers are three digits.

There are two other scenarios. aa and bb can be a three digit number and a two digit number, or a three digit number and a one digit number. For the first scenario, there are 9×8×2=1449 \times 8 \times 2=144 possibilities (the two accounting for whether aa or bb has three digits) and for the second case there are 9×2=189 \times 2=18 possibilities. Thus, thus total possibilities for (a,b)(a,b) is 576+144+18=738576+144+18=738.

Solution 3

We first must notice that we can find all the possible values of aa between 11 and 500500 and then double that result.

When 1<a<1001 < a < 100 there are 9×9=819\times9 = 81 possible solution for aa so that neither aa nor bb has a zero in it, counting 11 through 99, 1111 through 1919, ..., 8181 through 8989. When 100<a<200100 < a < 200 there are 9×8=729\times8 =72 possible solution for a so that neither a nor b has a zero in it, counting 111111 through 119119, 121121 through 129129, ..., 181181 through 189189. This can clearly be extended to 100k<a<100(k+1)100k < a < 100(k+1) where kk is an integer and 0.Thusfor0 . Thus for100 < a < 500therearethere are72\times4==288possiblevaluesofpossible values ofa$.

Thus when 1<a<5001 < a < 500 there are 288+81=369288 + 81 =369 possible values of aa and bb.

Doubling this yields 369×2=738369\times2= 738.

Solution 4 (Similar to Solution 2)

We proceed by casework on the number of digits of a.a.

Case 1: Both aa and bb have three digits

We now use constructive counting. For the hundreds digit of a,a, we see that there are 88 options - the numbers 11 through 8.8. (If a=9,a = 9, that means that bb will be a two digit number, and if a=0,a = 0, aa will have two digits). Similarly, the tens digit can be 181-8 as well because a tens digit of 00 is obviously prohibited and a tens digit of 99 will lead to a tens digit of 00 in the other number. The units digit can be anything from 19.1-9. Hence, there are 889=5768 \cdot 8 \cdot 9 = 576 possible values in this case.

Case 2: aa (or bb) has two digits

If aa has two digits, the only restrictions are that the units digit must not be 00 and the tens digit must not be 99 (because then that would lead to bb beginning with 90...90...). There thus are 89=728 \cdot 9 = 72 possibilities for a,a, and we have to multiply by 22 because there are the same number of possibilities for b.b. Thus, there are 722=14472 \cdot 2 = 144 possible values in this case.

Case 3: aa (or bb) has one digit

This is easy -- aa can be anything from 11 to 9,9, for a total of 99 possible values. We multiply this by 22 to account for the single digit bb values, so we have 92=189 \cdot 2 = 18 possible values for this case.

Adding them all up, we get 576+144+18=738,576 + 144 + 18 = \boxed{738}, and we're done.

Solution by Ilikeapos

Solution 5

For every a[1,999]a \in [1, 999], (a,1000a)(a, 1000 - a) is a potential candidate for a solution, barring the cases where aa or 1000a1000 -a has zero digits.

First, let's consider all viable aa that do not have a zero digit. As there are 9 non-zero digits, we have:

  • 919^1 1-digit numbers without a zero digit
  • 929^2 2-digit numbers without a zero digit
  • 939^3 3-digit numbers without a zero digit

However, we have still overlooked the cases where 1000a1000 - a contains zero digits:

  • Case 1: If the one's digit of 1000a1000 - a is zero, then aa will trivially end in a zero, which we've already excluded.
  • Case 2: If the ten's digit of 1000a1000 - a is zero, with digital representation X0Y\overline{X0Y}, then aa has the digital representation [9X]9[10Y]\overline{[9-X]9[10-Y]}. XX and YY can each take on any value in [1,9][1, 9] to produce a value in our set of potential aa. There are thus 929^2 cases that we overlooked, where aa had no zero digits, but 1000a1000 - a did.

Adding up the cases with a[1,999]a \in [1, 999] with no zero digits and removing the cases with 1000a1000 - a with zero digits gives us

(91+92+93)92=738(9^1 + 9^2 + 9^3) - 9^2 = \boxed{738} ~SaifHakim