Problem 876: (1998 AIME, 5)
Given that $A_k = \frac {k(k - 1)}2\cos\frac {k(k - 1)\pi}2,$ find $\bigl\lvert A_{19} + A_{20} + \cdots + A_{98}\bigr\rvert.$
- Let $T_k=\frac{k(k-1)}2$; then $A_k=(-1)^{T_k}T_k$. The sign is $+$ for $k\equiv0,1$ and $-$ for $k\equiv2,3\pmod4$.
- For each $j$, $(T_{4j}+T_{4j+1})-(T_{4j+2}+T_{4j+3})=-(16j+4)$, since $T_{k+1}-T_k=k$. For $j=5,\dots,23$ this gives $-4332$.
- The leftover terms are $-T_{19}+T_{96}+T_{97}-T_{98}=-171+4560+4656-4753$. The total is $-40$.
- The answer is $\boxed{040}$.
Given that $A_k = \frac {k(k - 1)}2\cos\frac {k(k - 1)\pi}2,$ find $\bigl\lvert A_{20} + A_{21} + \cdots + A_{90}\bigr\rvert.$