返回题库

AIME 2013 I · 第 2 题

AIME 2013 I — Problem 2

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

Find the number of five-digit positive integers, nn, that satisfy the following conditions:

(a) the number nn is divisible by 5,5,

(b) the first and last digits of nn are equal, and

(c) the sum of the digits of nn is divisible by 5.5.

解析

Solution 1

The number takes a form of 5xyz5\overline{5xyz5}, in which 5(x+y+z)5|(x+y+z). Let xx and yy be arbitrary digits. For each pair of x,yx,y, there are exactly two values of zz that satisfy the condition of 5(x+y+z)5|(x+y+z). Therefore, the answer is 10×10×2=20010\times10\times2=\boxed{200}

Solution 2 (casework)

We know the number will take the form 5xyz5\overline{5xyz5} because of the first two conditions. The third condition means that 5(x+y+z)5|(x+y+z), where x,y,zx,y,z are nonnegative integers less than 1010. Let's split the problem into cases, where each case represents a possible sum of x,y,zx,y,z.

1. If x+y+z=0x+y+z=0, we only have x=0,y=0,z=0x=0,y=0,z=0, so only 11.

2. If x+y+z=5x+y+z=5, we use stars & bars. We have 55 stars and 31=23-1=2 bars, so this case has (72)7\choose{2}=21= 21.

3. If x+y+z=10x+y+z=10, we use similar logic. We have 1010 stars and 22 bars, so (122)12\choose{2}=66= 66. However, x,y,zx,y,z must be less than 1010. Three of our order pairs have 10:(10,0,0),(0,10,0),(0,0,10)10: (10,0,0), (0,10,0), (0,0,10). Therefore, this case has 663=6366-3=63.

4. If x+y+z=15x+y+z=15, it gets more complicated. Using the same system as used previously would be too complicated. But remember that this case is equivalentto if we wanted to choose x+y+z=12x+y+z=12. We know this because you can take any ordered pair satisfying x+y+z=15,x+y+z=15, subtract each variable from 99, and get an ordered pair satisfying x+y+z=12x+y+z=12. For example, take (5,6,4)(5,6,4), which satisfies x+y+z=15.x+y+z=15. Its corresponding ordered pair would be (4,3,5)(4,3,5), which satisfies x+y+z=12x+y+z=12. Let's proceed to calculating. Applying stars and bars, we get (142)14\choose{2}=91= 91, but we have to subtract the subcases including 10,11,10,11, or 1212 because x,y,zx,y,z must all be one-digit integers. There are 33 cases with a 1212, 66 cases with an 1111, and 3+63+6 cases with a 1010. So this case has 9118=7391-18=73.

5. If x+y+z=20x+y+z=20, we can just calculate the ways to get x+y+z=7x+y+z=7. Applying stars & bars, we get (92)9\choose{2}=36= 36.

6. If x+y+z=25x+y+z=25, we can just calculate the ways to get x+y+z=2.x+y+z=2. Applying stars & bars, we get (42)4\choose{2}=6= 6.

Therefore, our answer is 1+21+63+73+36+6=2001+21+63+73+36+6 = \boxed{200}.

Note: For case 4, the subcases that must be excluded are (12,0,0),(11,1,0),(10,2,0),(10,1,1)(12,0,0), (11,1,0), (10,2,0), (10,1,1) and each of their respective permutations. Those 44 ordered pairs have 3,6,6,33,6,6,3 permutations respectively, which is why 1818 ordered pairs must be subtracted from 9191.

~lprado

Video Solution

https://www.youtube.com/watch?v=kz3ZX4PT-_0 ~Shreyas S