返回题库

AIME 1998 · 第 5 题

AIME 1998 — Problem 5

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

Given that Ak=k(k1)2cosk(k1)π2,A_k = \frac {k(k - 1)}2\cos\frac {k(k - 1)\pi}2, find A19+A20++A98.|A_{19} + A_{20} + \cdots + A_{98}|.

解析

Solution

Though the problem may appear to be quite daunting, it is actually not that difficult. k(k1)2\frac {k(k-1)}2 always evaluates to an integer (triangular number), and the cosine of nπn\pi where nZn \in \mathbb{Z} is 1 if nn is even and -1 if nn is odd. k(k1)2\frac {k(k-1)}2 will be even if 4k4|k or 4k14|k-1, and odd otherwise.

So our sum looks something like:

i=1998Ai=19(18)2+20(19)2+21(20)222(21)223(22)2+24(23)298(97)2\left|\sum_{i=19}^{98} A_i\right| =- \frac{19(18)}{2} + \frac{20(19)}{2} + \frac{21(20)}{2} - \frac{22(21)}{2} - \frac{23(22)}{2} + \frac{24(23)}{2} \cdots - \frac{98(97)}{2}

If we group the terms in pairs, we see that we need a formula for (n)(n1)2+(n+1)(n)2=(n2)(n+1(n1))=n-\frac{(n)(n-1)}{2} + \frac{(n+1)(n)}{2} = \left(\frac n2\right)(n+1 - (n-1)) = n. So the first two fractions add up to 1919, the next two to 21-21, and so forth.

If we pair the terms again now, each pair adds up to 2-2. There are 9819+122=20\frac{98-19+1}{2 \cdot 2} = 20 such pairs, so our answer is 220=040|-2 \cdot 20| = \boxed{040}.