返回题库

AIME 2002 I · 第 9 题

AIME 2002 I — Problem 9

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

Harold, Tanya, and Ulysses paint a very long picket fence.

  • Harold starts with the first picket and paints every hhth picket;
  • Tanya starts with the second picket and paints every ttth picket; and
  • Ulysses starts with the third picket and paints every uuth picket.

Call the positive integer 100h+10t+u100h+10t+u paintable when the triple (h,t,u)(h,t,u) of positive integers results in every picket being painted exactly once. Find the sum of all the paintable integers.

解析

Solution

Solution 1

Note that it is impossible for any of h,t,uh,t,u to be 11, since then each picket will have been painted one time, and then some will be painted more than once.

hh cannot be 22, or that will result in painting the third picket twice. If h=3h=3, then tt may not equal anything not divisible by 33, and the same for uu. Now for fourth and fifth pickets to be painted, tt and uu must be 33 as well. This configuration works, so 333333 is paintable.

If hh is 44, then tt must be even. The same for uu, except that it can't be 2mod42 \mod 4. Thus uu is 0mod40 \mod 4 and tt is 2mod42 \mod 4. Since this is all mod4\mod 4, tt must be 22 and uu must be 44, in order for 5,65,6 to be paint-able. Thus 424424 is paintable.

hh cannot be greater than 44, since if that were the case then the answer would be greater than 999999, which would be impossible for the AIME.

Thus the sum of all paintable numbers is 757\boxed{757}.

Solution 2

Again, note that h,t,u1h,t,u \neq 1. The three conditions state that no picket number nn may satisfy any two of the conditions: n1(modh), n2(modt), n3(modu)n \equiv 1 \pmod{h},\ n \equiv 2 \pmod{t},\ n \equiv 3 \pmod{u}. By the Chinese Remainder Theorem, the greatest common divisor of any pair of the three numbers {h,t,u}\{h,t,u\} cannot be 11 (since otherwise without loss of generality consider gcd(h,t)=1\text{gcd}\,(h,t) = 1; then there will be a common solution (modh×t)\pmod{h \times t}).

Now for 44 to be paint-able, we require either h=3h = 3 or t=2t=2, but not both.

  • In the former condition, since gcd(h,t), gcd(h,u)1\text{gcd}\,(h,t),\ \text{gcd}\,(h,u) \neq 1, it follows that 3t,u3|t,u. For 55 and 66 to be paint-able, we require t=u=3t = u = 3, and it is easy to see that 333333 works.
  • In the latter condition, similarly we require that 2h,u2|h,u. All even numbers are painted. We now renumber the remaining odd pickets to become the set of all positive integers (1,3,5,1,2,3,1,3,5, \ldots \rightarrow 1',2',3', \ldots, where n=n+12n' = \frac{n+1}{2}), which requires the transformation h=h/2, u=u/2h' = h/2,\ u' = u/2, and with the painting starting respectively at 1,21',2'. Our new number system retains the same conditions as above, except without tt. We thus need gcd(h,u)1,h,u1\text{gcd}\, (h',u') \neq 1, h',u' \neq 1. Then for 3,43',4' to be painted, we require h=u=2h' = u' = 2. This translates to 424424, which we see works.

Thus the answer is 333+424=757333+424 = \boxed{757}.

Solution 3

The three conditions state that no picket number nn may satisfy any two of the conditions: n1(modh), n2(modt), n3(modu)n \equiv 1 \pmod{h},\ n \equiv 2 \pmod{t},\ n \equiv 3 \pmod{u}. Note that the smallest number, min{h,t,u},min \{ h,t,u \}, divides the other 22, and the next smallest divide the largest number, otherwise there is a common solution by the Chinese Remainder Theorem. It is also a necessary condition so that it paints exactly once. Note that the smallest number can't be at least 55, otherwise not all picket will be painted. We are left with few cases (we could also exclude 11 as the possibility) which could be done quickly. Thus the answer is 333+424=757333+424 = \boxed{757}.

Solution 4

The wording of this problem is a bit dissatisfying and could have been improved by stating that there are at least h + t + u pickets instead of "very long". For example, a very long fence could have 5 pickets, h = 78, t = 47, u = 1. To compensate for this we should lean on the fact that the answer cannot exceed 999.

Clearly we have to accept that there are 4 pickets or more, and the 4th picket is not reached from setting u = 1. If the 4th picket is reached from h = 3, then the 5th picket will not be reached via u = 2, or else we'd be unable to have 7 pickets. So h = 3 => t = 3 => u = 3, and 333 is a solution. We now have h > 3 for any remaining cases, and thus we only have room for 1 more case.

Since the 4th picket must henceforth be reached via t = 2, we either have the 5th picket reached via u = 2 (requiring h to be any number exceeding the number of pickets, and we're stipulating that this is not allowed), or we have the 5th picket reached via h = 4, from which it follows that u = 4. So we have accumulated the solutions 333 and 424 and we have exhausted both the space of reasonable possibilities as well as the available space before we would exceed 999.