11.1. Given the sequence $a_{n}=(-1)^{1+2+\ldots+n}$. Find $a_{1}+a_{2}+\ldots+a_{2017}$.
Answer: -1. Solution. We have $a_{n}=(-1)^{\text {sn }}$, where $S_{n}=\frac{n(n+1)}{2}$. It is easy to notice and prove that the parity of the number $S_{n}$ repeats with a period of 4: indeed, $S_{n+4}-S_{n}=\frac{(n+4)(n+5)-n(n+1)}{2}=\frac{8 n+20}{2}=4 n+10$, i.e., an even number. Therefore, $a_{1}+a_{2}+\ldots+a_{2017}=(-1-1+1+1)+(-1-1+1+1)+\ldots+(-1-1+1+1)+(-1)=0+0+\ldots+0+(-$ $1)=-1$.