$\cos\frac{k(k-1)\pi}2$ is $+1$ for $k\equiv0,1$ and $-1$ for $k\equiv2,3\pmod4$. For $k\equiv0\pmod4$, $A_k+A_{k+1}+A_{k+2}+A_{k+3}=\frac12\bigl(k(k-1)+k(k+1)-(k+1)(k+2)-(k+2)(k+3)\bigr)=-4(k+1)$.
The groups $k=20,24,\dots,84$ give $-4(21+25+\cdots+85)=-4\cdot901=-3604$. The rest is $A_{88}+A_{89}+A_{90}=3828+3916-4005=3739$.