返回题库

AIME 2010 I · 第 10 题

AIME 2010 I — Problem 10

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

Let NN be the number of ways to write 20102010 in the form 2010=a3103+a2102+a110+a02010 = a_3 \cdot 10^3 + a_2 \cdot 10^2 + a_1 \cdot 10 + a_0, where the aia_i's are integers, and 0ai990 \le a_i \le 99. An example of such a representation is 1103+3102+67101+401001\cdot 10^3 + 3\cdot 10^2 + 67\cdot 10^1 + 40\cdot 10^0. Find NN.

解析

Solution 1

If we choose a3a_3 and a1a_1 such that (103)(a3)+(10)(a1)2010(10^3)(a_3) + (10)(a_1) \leq 2010 there is a unique choice of a2a_2 and a0a_0 that makes the equality hold. So NN is just the number of combinations of a3a_3 and a1a_1 we can pick. If a3=0a_3 = 0 or a3=1a_3 = 1 we can let a1a_1 be anything from 00 to 9999. If a3=2a_3 = 2 then a1=0a_1 = 0 or a1=1a_1 = 1. Thus N=100+100+2=202N = 100 + 100 + 2 = \fbox{202}.

Solution 2

Note that a2102+a0a_2\cdot 10^2 + a_0 is the base 100100 representation of any number from 00 to 99999999, and similarly 10(a3102+a1)10(a_3\cdot 10^2 + a_1) is ten times the base 100100 representation of any number from 00 to 99999999. Thus, the number of solutions is just the number of solutions to 2010=10a+b2010 = 10a+b where 0a,b99990\le a, b\le 9999, which is equal to 202\boxed{202} as aa can range from 00 to 201201.

Solution 3

Note that a02010 (mod 10)a_0 \equiv 2010\ (\textrm{mod}\ 10) and a12010a0 (mod 100)a_1 \equiv 2010 - a_0\ (\textrm{mod}\ 100). It's easy to see that exactly 10 values in 0a0990 \leq a_0 \leq 99 that satisfy our first congruence. Similarly, there are 10 possible values of a1a_1 for each choice of a0a_0. Thus, there are 10×10=10010 \times 10 = 100 possible choices for a0a_0 and a1a_1. We next note that if a0a_0 and a1a_1 are chosen, then a valid value of a3a_3 determines a2a_2, so we dive into some simple casework:

  • If 201010a1a020002010 - 10a_1 - a_0 \geq 2000, there are 3 valid choices for a3a_3. There are only 2 possible cases where 201010a1a020002010 - 10a_1 - a_0 \geq 2000, namely (a1,a0)=(1,0),(10,0)(a_1, a_0) = (1,0), (10,0). Thus, there are 3×2=63 \times 2 = 6 possible representations in this case.
  • If 201010a1a0<10002010 - 10a_1 - a_0 < 1000, a3a_3 can only equal 0. However, this case cannot occur, as 10a1+a0990+99=108910a_1+a_0\leq 990+99 = 1089. Thus, 201010a1a09212010-10a_1-a_0 \geq 921. However, 201010a1a0=1000a3+100a20 (mod 100)2010-10a_1-a_0 = 1000a_3 + 100a_2 \equiv 0\ (\textrm{mod}\ 100). Thus, we have 201010a1a010002010-10a_1-a_0 \geq 1000 always.
  • If 1000201010a1a0<20001000 \leq 2010 - 10a_1 - a_0 < 2000, then there are 2 valid choices for a3a_3. Since there are 100 possible choices for a0a_0 and a1a_1, and we have already checked the other cases, it follows that 10020=98100 - 2 - 0 = 98 choices of a0a_0 and a1a_1 fall under this case. Thus, there are 2×98=1962 \times 98 = 196 possible representations in this case.

Our answer is thus 6+0+196=2026 + 0 + 196 = \boxed{202}.

Solution 4: Casework and Brute Force

We immediately see that a3a_3 can only be 00, 11 or 22. We also note that the maximum possible value for 10a1+a010a_1 + a_0 is 990+99=1089990 + 99 = 1089. We then split into cases:

Case 1: a3=0a_3 = 0. We try to find possible values of a2a_2. We plug in a3=0a_3 = 0 and 10a1+a0=108910a_1 + a_0 = 1089 to our initial equation, which gives us 2010=0+100a2+10892010 = 0 + 100a_2 + 1089. Thus a210a_2 \geq 10. We also see that a220a_2 \leq 20. We now take these values of a2a_2 and find the number of pairs (a1,a0)(a_1, a_0) that work. If a2=10a_2 = 10, 10a1+a0=101010a_1 + a_0 = 1010. We see that there are 88 possible pairs in this case. Using the same logic, there are 1010 ways for a2=11,1219a_2 = 11, 12 \ldots 19. For a2=20a_2 = 20, we get the equation 10a1+a0=1010a_1 + a_0 = 10, for 2 ways. Thus, for a3=0a_3 = 0, there are 8+109+2=1008 + 10 \cdot 9 + 2 = 100 ways.

Case 2: a3=1a_3 = 1. This case is almost identical to the one above, except 0a2100 \leq a_2 \leq 10. We also get 100 ways.

Case 3: a3=2a_3 = 2. If a3=2a_3 = 2, our initial equation becomes 100a2+10a1+a0=10100a_2 + 10a_1 + a_0 = 10. It is obvious that a2=0a_2 = 0, and we are left with 10a1+a0=1010a_1 + a_0 = 10. We saw above that there are 22 ways.

Totaling everything, we get that there are 100+100+2=202100 + 100 + 2 = \boxed{202} ways.

Solution 5: Generating Functions

We will represent the problem using generating functions. Consider the generating function

f(x)=(1+x1000+x2000++x99000)(1+x100+x200++x9900)(1+x10+x20++x990)(1+x+x2++x99)f(x) = (1+x^{1000}+x^{2000}+\cdots+x^{99000})(1+x^{100}+x^{200}+\cdots+x^{9900})(1+x^{10}+x^{20}+\cdots+x^{990})(1+x+x^2+\cdots+x^{99}) where the first factor represents a3a_3, the second factor a2a_2, and so forth. We want to find the coefficient of x2010x^{2010} in the expansion of f(x)f(x). Now rewriting each factor using the geometric series yields

f(x)=x1001x1x10001x101x100001x1001x1000001x10001=x100001x1x1000001x101=(1+x+x2++x9999)(1+x10+x20++x99990)f(x) = \frac{\cancel{x^{100}-1}}{x-1} \cdot \frac{\cancel{x^{1000}-1}}{x^{10}-1} \cdot \frac{x^{10000}-1}{\cancel{x^{100}-1}} \cdot \frac{x^{100000}-1}{\cancel{x^{1000}-1}}=\frac{x^{10000}-1}{x-1} \cdot \frac{x^{100000}-1}{x^{10}-1} = (1+x+x^2+\cdots + x^{9999})(1+x^{10}+x^{20}+\cdots+x^{99990}) The coefficient of x2010x^{2010} in this is simply 202\boxed{202}, as we can choose any of the first 202 terms from the second factor and pair it with exactly one term in the first factor.

~rzlng

Solution 5

First note that a3a_3 has to be a single-digit number(00, 11, or 22 to be exact), and that a1a_1 has to be a two-digit multiple of ten. Then, a3a_3, a2a_2, a1a_1 and a0a_0 can be represented as follows:

a3=aa2=10b+ca1=10d+ea0=10f\begin{aligned} a_3 = a \\ a_2 = 10b+c \\ a_1= 10d+e \\ a_0 = 10f \end{aligned} , where aa, bb, cc, dd, ee, and ff are all(not necessarily nonzero) digits. Now, we can write our given equation as follows:

2010=1000(a+b)+100(c+d)+10(e+f)201=100(a+b)+10(c+d)+(e+f)201=(100a+10c+e)+(100b+d+f)\begin{aligned} 2010 = 1000(a+b) + 100(c+d) + 10(e+f) \\ 201 = 100(a+b) + 10(c+d) + (e+f) \\ 201 = (100a + 10c + e) + (100b + d + f) \end{aligned} Now, each integer between 00 and 201201 inclusive can be represented in exactly one way as 100a+10c+e100a + 10c + e, and this corresponds with one unique 100b+d+f100b + d + f, so it remains to count the number of integers between 00 and 201201 inclusive. This is easily counted to be 202\boxed{202}.

Solution 6

Just note that this corresponds to 0103a3+102a2+101a120100 \leq 10^3 \cdot a_3 + 10^2 \cdot a_2 + 10^1 \cdot a_1 \leq 2010, because we can use a0a_0 to fill in the remaining gap. Then, dividing by 1010, we have 0a3a2a12010 \leq \overline{a_3 a_2 a_1} \leq 201, of which there are 202\boxed{202} solutions.

Video Solution

https://youtu.be/DNC2zd5rReY