One of my classmates challenged me to solve $\displaystyle\sum\limits_{n=1}^{\infty}\frac{\sin n}n=\;?$
With a simple c program I found that $\displaystyle\sum\limits_{n=1}^{1048576}\frac{\sin n}n\approx1.070796$. Later I found $\displaystyle1.070796\approx\frac{\pi-1}{2}$. My classmate told me I guessed right, but he ask me to prove it, and he gave me a hint that $\displaystyle e^{i\theta} = \cos\theta + i \sin\theta$, though I can't see the relationship between the question and the hint.
So how to prove $\displaystyle\sum\limits_{n=1}^{\infty}\frac{\sin n}n=\frac{\pi-1}{2}$?