Let $\zeta$ be a primitive $n$-th root of unity and $m \in \{0,1,\dots,n-1\}$. I am interested in finding the value of the following expression:
$$\sum_{k=1}^{n-1}\frac{\zeta^{mk}}{1-\zeta^k}.$$
This has come up in a context where it should be a rational number (in fact it seems like it will be of the form $\frac{r}{2}$ where $r \in \mathbb Z$). For example for $m=0$ I can get the values $\frac{n-1}{2}$ by letting $f(x) = \frac{x^n-1}{x-1}$ and noticing that the desired sum equals $\frac{f'(1)}{f(1)}$. However I am not able to find such a "trick" when $m$ is nonzero.