For any positive integer $n$, $d_n$ it the last digit of $(1+2+\dots+n)$. What is the reminder when $\sum_{n=1}^{2017} d_n$ is divided by $1000$?
Source:MAA